mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 09:31: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
|
@ -413,8 +413,8 @@ void __init smp_prepare_boot_cpu(void)
|
|||
|
||||
int __cpuinit __cpu_up(unsigned int cpu, struct task_struct *tidle)
|
||||
{
|
||||
extern int __cpuinit smp4m_boot_one_cpu(int);
|
||||
extern int __cpuinit smp4d_boot_one_cpu(int);
|
||||
extern int __cpuinit smp4m_boot_one_cpu(int, struct task_struct *);
|
||||
extern int __cpuinit smp4d_boot_one_cpu(int, struct task_struct *);
|
||||
int ret=0;
|
||||
|
||||
switch(sparc_cpu_model) {
|
||||
|
@ -427,13 +427,13 @@ int __cpuinit __cpu_up(unsigned int cpu, struct task_struct *tidle)
|
|||
BUG();
|
||||
break;
|
||||
case sun4m:
|
||||
ret = smp4m_boot_one_cpu(cpu);
|
||||
ret = smp4m_boot_one_cpu(cpu, tidle);
|
||||
break;
|
||||
case sun4d:
|
||||
ret = smp4d_boot_one_cpu(cpu);
|
||||
ret = smp4d_boot_one_cpu(cpu, tidle);
|
||||
break;
|
||||
case sparc_leon:
|
||||
ret = leon_boot_one_cpu(cpu);
|
||||
ret = leon_boot_one_cpu(cpu, tidle);
|
||||
break;
|
||||
case sun4e:
|
||||
printk("SUN4E\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue