The "temp" will be used later. So it has to be calculated correctly.

Comment by Peter,
The variable name "temp" unfortunately does not explain what the value
is. The commit message also does not have hints. Hopefully in the
future it's possible to also use a brief moment to improve the clarity
of the code, while it is already being fixed for some other
reason. Ie. fixing up variable names, writing particularly informative
commit messages, or of course both at the same time! :)

Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Acked-by: Marc Jones <marcj303@gmail.com>


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6517 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Zheng Bao 2011-04-19 06:40:56 +00:00 committed by Zheng Bao
parent 52ffb2b66d
commit b18f9b0ff4
1 changed files with 2 additions and 1 deletions

View File

@ -565,7 +565,8 @@ static u8 fam10GetNumCoresOnNode(u8 node, cNorthBridge *nb)
/* bits[15,13,12] specify the cores */
/* Support Downcoring */
cores = ((temp & 8) >> 1) + (temp & 3) + 1;
temp = ((temp & 8) >> 1) + (temp & 3);
cores = temp + 1;
AmdPCIReadBits (MAKE_SBDFO(makePCISegmentFromNode(node),
makePCIBusFromNode(node),
makePCIDeviceFromNode(node),