Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a70d2d9 authored by Srivatsa S. Bhat's avatar Srivatsa S. Bhat Committed by Thomas Gleixner
Browse files

smpboot, idle: Fix comment mismatch over idle_threads_init()



The comment over idle_threads_init() really talks about the functionality
of idle_init(). Move that comment to idle_init(), and add a suitable
comment over idle_threads_init().

Signed-off-by: default avatarSrivatsa 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/20120524151100.2549.66501.stgit@srivatsabhat.in.ibm.com


Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent ee74d132
Loading
Loading
Loading
Loading
+7 −4
Original line number Original line Diff line number Diff line
@@ -31,6 +31,12 @@ void __init idle_thread_set_boot_cpu(void)
	per_cpu(idle_threads, smp_processor_id()) = current;
	per_cpu(idle_threads, smp_processor_id()) = current;
}
}


/**
 * idle_init - Initialize the idle thread for a cpu
 * @cpu:	The cpu for which the idle thread should be initialized
 *
 * Creates the thread if it does not exist.
 */
static inline void idle_init(unsigned int cpu)
static inline void idle_init(unsigned int cpu)
{
{
	struct task_struct *tsk = per_cpu(idle_threads, cpu);
	struct task_struct *tsk = per_cpu(idle_threads, cpu);
@@ -45,10 +51,7 @@ static inline void idle_init(unsigned int cpu)
}
}


/**
/**
 * idle_thread_init - Initialize the idle thread for a cpu
 * idle_threads_init - Initialize idle threads for all cpus
 * @cpu:	The cpu for which the idle thread should be initialized
 *
 * Creates the thread if it does not exist.
 */
 */
void __init idle_threads_init(void)
void __init idle_threads_init(void)
{
{