summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2010-10-26 15:11:45 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2010-10-26 15:11:45 +0000
commitf3e8542cc498da4a18f66cb7894afa6a49f977c2 (patch)
treefa81a9cc6b582097a064ab39f0c88b2d98c82548 /src
parent45057d2753220dd4100951097d844f56dae93f46 (diff)
reg is only used inside the #if clause, so declare it there. trivial.
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Patrick Georgi <patrick.georgi@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5989 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r--src/cpu/amd/model_10xxx/init_cpus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/amd/model_10xxx/init_cpus.c b/src/cpu/amd/model_10xxx/init_cpus.c
index b20446f7e2..8f85bceb75 100644
--- a/src/cpu/amd/model_10xxx/init_cpus.c
+++ b/src/cpu/amd/model_10xxx/init_cpus.c
@@ -913,9 +913,9 @@ static void finalize_node_setup(struct sys_info *sysinfo)
{
u8 i;
u8 nodes = get_nodes();
- u32 reg;
#if CONFIG_RAMINIT_SYSINFO
+ u32 reg;
/* read Node0 F0_0x64 bit [8:10] to find out SbLink # */
reg = pci_read_config32(NODE_HT(0), 0x64);
sysinfo->sblk = (reg >> 8) & 7;