projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
smpboot, idle: Optimize calls to smp_processor_id() in idle_threads_init()
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
kernel
/
smpboot.c
diff --git
a/kernel/smpboot.c
b/kernel/smpboot.c
index e1a797e028a320d62c01e77a47f533e0998adaa3..0f2162f808a7d1973baac593db46f72ab0da46a6 100644
(file)
--- a/
kernel/smpboot.c
+++ b/
kernel/smpboot.c
@@
-52,10
+52,12
@@
static inline void idle_init(unsigned int cpu)
*/
void __init idle_threads_init(void)
{
- unsigned int cpu;
+ unsigned int cpu, boot_cpu;
+
+ boot_cpu = smp_processor_id();
for_each_possible_cpu(cpu) {
- if (cpu !=
smp_processor_id()
)
+ if (cpu !=
boot_cpu
)
idle_init(cpu);
}
}