Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302783
b: refs/heads/master
c: a4cfc31
h: refs/heads/master
i:
  302781: 31cc368
  302779: 7d90308
  302775: ef334eb
  302767: dc1661a
  302751: 5e2f5f1
  302719: 04fb773
v: v3
  • Loading branch information
Thomas Gleixner committed Apr 26, 2012
1 parent c322d19 commit 04e906a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 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: e80e7813cd772cf30597024b371e73df9736de8d
refs/heads/master: a4cfc31da34eacafd9f6b16e149448bf0ef6d0b2
1 change: 1 addition & 0 deletions trunk/arch/cris/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ config CRIS
select HAVE_GENERIC_HARDIRQS
select GENERIC_IRQ_SHOW
select GENERIC_IOMAP
select GENERIC_SMP_IDLE_THREAD if ETRAX_ARCH_V32

config HZ
int
Expand Down
12 changes: 2 additions & 10 deletions trunk/arch/cris/arch-v32/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,12 @@ void __init smp_cpus_done(unsigned int max_cpus)

/* Bring one cpu online.*/
static int __init
smp_boot_one_cpu(int cpuid)
smp_boot_one_cpu(int cpuid, struct task_struct idle)
{
unsigned timeout;
struct task_struct *idle;
cpumask_t cpu_mask;

cpumask_clear(&cpu_mask);
idle = fork_idle(cpuid);
if (IS_ERR(idle))
panic("SMP: fork failed for CPU:%d", cpuid);

task_thread_info(idle)->cpu = cpuid;

/* Information to the CPU that is about to boot */
Expand All @@ -142,9 +137,6 @@ smp_boot_one_cpu(int cpuid)
barrier();
}

put_task_struct(idle);
idle = NULL;

printk(KERN_CRIT "SMP: CPU:%d is stuck.\n", cpuid);
return -1;
}
Expand Down Expand Up @@ -209,7 +201,7 @@ unsigned long cache_decay_ticks = 1;

int __cpuinit __cpu_up(unsigned int cpu, struct task_struct *tidle)
{
smp_boot_one_cpu(cpu);
smp_boot_one_cpu(cpu, tidle);
return cpu_online(cpu) ? 0 : -ENOSYS;
}

Expand Down

0 comments on commit 04e906a

Please sign in to comment.