projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61b1b2d
)
[PATCH] x86_64: Minor clean up to CPU setup - use smp_processor_id instead of custom...
author
Andi Kleen
<ak@suse.de>
Fri, 29 Jul 2005 04:15:28 +0000
(21:15 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Fri, 29 Jul 2005 04:45:58 +0000
(21:45 -0700)
Does not change any semantics because numa_add_cpu checks for CPU 0 anyways.
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/setup.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86_64/kernel/setup.c
b/arch/x86_64/kernel/setup.c
index 5fd03225058aa410bb60e461bb149db048844583..0c7ec94004a21238da6b4174f5a983f7dc49ffa7 100644
(file)
--- a/
arch/x86_64/kernel/setup.c
+++ b/
arch/x86_64/kernel/setup.c
@@
-1081,8
+1081,7
@@
void __cpuinit identify_cpu(struct cpuinfo_x86 *c)
else
mtrr_ap_init();
#ifdef CONFIG_NUMA
- if (c != &boot_cpu_data)
- numa_add_cpu(c - cpu_data);
+ numa_add_cpu(smp_processor_id());
#endif
}