Skip to content

Commit 4a70d2d

Browse files
Srivatsa S. BhatKAGA-KOKO
authored andcommitted
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: Srivatsa S. Bhat <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
1 parent ee74d13 commit 4a70d2d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

kernel/smpboot.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ void __init idle_thread_set_boot_cpu(void)
3131
per_cpu(idle_threads, smp_processor_id()) = current;
3232
}
3333

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

4753
/**
48-
* idle_thread_init - Initialize the idle thread for a cpu
49-
* @cpu: The cpu for which the idle thread should be initialized
50-
*
51-
* Creates the thread if it does not exist.
54+
* idle_threads_init - Initialize idle threads for all cpus
5255
*/
5356
void __init idle_threads_init(void)
5457
{

0 commit comments

Comments
 (0)