From a2cebbe13af03d7a0f5a829b282339e8c6e4e694 Mon Sep 17 00:00:00 2001 From: "Srivatsa S. Bhat" Date: Thu, 24 May 2012 20:41:00 +0530 Subject: [PATCH] --- yaml --- r: 310449 b: refs/heads/master c: 4a70d2d9909b43ed88043b98cabe2c7fbd563021 h: refs/heads/master i: 310447: f940ae21d427e00ed7d1865f82ecc447f6fe37b0 v: v3 --- [refs] | 2 +- trunk/kernel/smpboot.c | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 1f4ff97604dc..7c1029b5e985 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ee74d13229fb606353ff56f4927fa93b37e95bbe +refs/heads/master: 4a70d2d9909b43ed88043b98cabe2c7fbd563021 diff --git a/trunk/kernel/smpboot.c b/trunk/kernel/smpboot.c index 0f2162f808a7..98f60c5caa1b 100644 --- a/trunk/kernel/smpboot.c +++ b/trunk/kernel/smpboot.c @@ -31,6 +31,12 @@ void __init idle_thread_set_boot_cpu(void) 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) { 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 - * @cpu: The cpu for which the idle thread should be initialized - * - * Creates the thread if it does not exist. + * idle_threads_init - Initialize idle threads for all cpus */ void __init idle_threads_init(void) {