mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
sparc: Use generic idle thread allocation
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com> Tested-by: David S. Miller <davem@davemloft.net> Link: http://lkml.kernel.org/r/20120420124558.055198736@linutronix.de
This commit is contained in:
parent
2ec9415c71
commit
f0a2bc7e54
7 changed files with 18 additions and 32 deletions
|
@ -204,16 +204,11 @@ void __init leon_boot_cpus(void)
|
|||
|
||||
}
|
||||
|
||||
int __cpuinit leon_boot_one_cpu(int i)
|
||||
int __cpuinit leon_boot_one_cpu(int i, struct task_struct *idle)
|
||||
{
|
||||
|
||||
struct task_struct *p;
|
||||
int timeout;
|
||||
|
||||
/* Cook up an idler for this guy. */
|
||||
p = fork_idle(i);
|
||||
|
||||
current_set[i] = task_thread_info(p);
|
||||
current_set[i] = task_thread_info(idle);
|
||||
|
||||
/* See trampoline.S:leon_smp_cpu_startup for details...
|
||||
* Initialize the contexts table
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue