Commit 3aa88cdf authored by Carlos R. Mafra's avatar Carlos R. Mafra Committed by Ingo Molnar

x86: clean up k8topology.c

This patch fixes all errors pointed out by checkpatch.pl.

                                      errors   lines of code   errors/KLOC
arch/x86/mm/k8topology_64.c (before)      72             185         389.1
arch/x86/mm/k8topology_64.c (after)        0             185             0

No code changed.

   text    data     bss     dec     hex filename
   1506       0       0    1506     5e2 k8topology_64.o.after
   1506       0       0    1506     5e2 k8topology_64.o.before

md5sum:

   f9f48331a7eca4fc60d2a03369dc5f53  k8topology_64.o.after
   f9f48331a7eca4fc60d2a03369dc5f53  k8topology_64.o.before
Signed-off-by: default avatarCarlos R. Mafra <crmafra@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent ff8a03a6
...@@ -69,10 +69,10 @@ int __init k8_scan_nodes(unsigned long start, unsigned long end) ...@@ -69,10 +69,10 @@ int __init k8_scan_nodes(unsigned long start, unsigned long end)
printk(KERN_INFO "Number of nodes %d\n", numnodes); printk(KERN_INFO "Number of nodes %d\n", numnodes);
memset(&nodes,0,sizeof(nodes)); memset(&nodes, 0, sizeof(nodes));
prevbase = 0; prevbase = 0;
for (i = 0; i < 8; i++) { for (i = 0; i < 8; i++) {
unsigned long base,limit; unsigned long base, limit;
u32 nodeid; u32 nodeid;
base = read_pci_config(0, nb, 1, 0x40 + i*8); base = read_pci_config(0, nb, 1, 0x40 + i*8);
...@@ -92,8 +92,8 @@ int __init k8_scan_nodes(unsigned long start, unsigned long end) ...@@ -92,8 +92,8 @@ int __init k8_scan_nodes(unsigned long start, unsigned long end)
} }
if (!limit) { if (!limit) {
printk(KERN_INFO "Skipping node entry %d (base %lx)\n", i, printk(KERN_INFO "Skipping node entry %d (base %lx)\n",
base); i, base);
continue; continue;
} }
if ((base >> 8) & 3 || (limit >> 8) & 3) { if ((base >> 8) & 3 || (limit >> 8) & 3) {
...@@ -137,7 +137,7 @@ int __init k8_scan_nodes(unsigned long start, unsigned long end) ...@@ -137,7 +137,7 @@ int __init k8_scan_nodes(unsigned long start, unsigned long end)
/* Could sort here, but pun for now. Should not happen anyroads. */ /* Could sort here, but pun for now. Should not happen anyroads. */
if (prevbase > base) { if (prevbase > base) {
printk(KERN_ERR "Node map not sorted %lx,%lx\n", printk(KERN_ERR "Node map not sorted %lx,%lx\n",
prevbase,base); prevbase, base);
return -1; return -1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment