Home
last modified time | relevance | path

Searched hist:ee74d13229fb606353ff56f4927fa93b37e95bbe (Results 1 – 1 of 1) sorted by relevance

/linux/kernel/
H A Dsmpboot.cee74d13229fb606353ff56f4927fa93b37e95bbe Thu May 24 15:10:55 UTC 2012 Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com> smpboot, idle: Optimize calls to smp_processor_id() in idle_threads_init()

While trying to initialize idle threads for all cpus, idle_threads_init()
calls smp_processor_id() in a loop, which is unnecessary. The intent
is to initialize idle threads for all non-boot cpus. So just use a variable
to note the boot cpu and use it in the loop.

Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Cc: suresh.b.siddha@intel.com
Cc: venki@google.com
Cc: nikunj@linux.vnet.ibm.com
Link: http://lkml.kernel.org/r/20120524151055.2549.64309.stgit@srivatsabhat.in.ibm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>