diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2016-10-05 18:47:26 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-10-09 21:36:06 +0200 |
commit | 4da1aa85610467df6810d5f90f1bdd48ea0cfdb4 (patch) | |
tree | 7efefcb273e0def8642a9d475f262234a0d16b49 /src/northbridge/amd/amdk8/acpi.c | |
parent | 11302f38cdeab3ab57e8a7cac66b321b4a4826bb (diff) |
northbridge/amd/amdk8: Remove commented code
Change-Id: Ifd6aefa6c046d100a5388a24a7d23cbd77905a85
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/16893
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/northbridge/amd/amdk8/acpi.c')
-rw-r--r-- | src/northbridge/amd/amdk8/acpi.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/northbridge/amd/amdk8/acpi.c b/src/northbridge/amd/amdk8/acpi.c index 906dc0b54a..2fbe7aa19a 100644 --- a/src/northbridge/amd/amdk8/acpi.c +++ b/src/northbridge/amd/amdk8/acpi.c @@ -147,49 +147,19 @@ static unsigned long acpi_fill_slit(unsigned long current) 3, 4, 2, 3, 1, 2, 0, 1, 4, 4, 3, 2, 2, 1, 1, 0 }; -// u8 outer_node[8]; - u8 *p = (u8 *)current; int nodes = sysconf.nodes; int i,j; memset(p, 0, 8+nodes*nodes); -// memset((u8 *)outer_node, 0, 8); *p = (u8) nodes; p += 8; -#if 0 - for (i = 0; i < sysconf.hc_possible_num; i++) { - if ((sysconf.pci1234[i]&1) !=1) continue; - outer_node[(sysconf.pci1234[i] >> 4) & 0xf] = 1; // mark the outer node - } -#endif - for (i = 0; i < nodes; i++) { for (j = 0; j < nodes; j++) { if (i == j) { p[i*nodes+j] = 10; } else { -#if 0 - int k; - u8 latency_factor = 0; - int k_start, k_end; - if (i < j) { - k_start = i; - k_end = j; - } else { - k_start = j; - k_end = i; - } - for (k = k_start; k <= k_end; k++) { - if (outer_node[k]) { - latency_factor = 1; - break; - } - } - p[i*nodes+j] = hops_8[i*nodes+j] * 2 + latency_factor + 10; -#else p[i*nodes+j] = hops_8[i*nodes+j] * 2 + 10; -#endif } } |