Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310449
b: refs/heads/master
c: 4a70d2d
h: refs/heads/master
i:
  310447: f940ae2
v: v3
  • Loading branch information
Srivatsa S. Bhat authored and Thomas Gleixner committed May 24, 2012
1 parent c558e18 commit a2cebbe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ee74d13229fb606353ff56f4927fa93b37e95bbe
refs/heads/master: 4a70d2d9909b43ed88043b98cabe2c7fbd563021
11 changes: 7 additions & 4 deletions trunk/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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)
{
Expand Down

0 comments on commit a2cebbe

Please sign in to comment.