Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188467
b: refs/heads/master
c: 682f5dc
h: refs/heads/master
i:
  188465: 579612c
  188463: bf62ce0
v: v3
  • Loading branch information
Graf Yang authored and Mike Frysinger committed Mar 9, 2010
1 parent 3819189 commit 7250141
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: 0325f25a919ed09d11b16ec8eccf95618dc36601
refs/heads/master: 682f5dc4ed7cdef1f55e40ee505c4346dfa6fa91
9 changes: 3 additions & 6 deletions trunk/arch/blackfin/mach-bf561/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

static DEFINE_SPINLOCK(boot_lock);

static cpumask_t cpu_callin_map;

/*
* platform_init_cpus() - Tell the world about how many cores we
* have. This is called while setting up the architecture support
Expand Down Expand Up @@ -72,7 +70,7 @@ void __cpuinit platform_secondary_init(unsigned int cpu)
bfin_setup_cpudata(cpu);

/* We are done with local CPU inits, unblock the boot CPU. */
cpu_set(cpu, cpu_callin_map);
set_cpu_online(cpu, true);
spin_lock(&boot_lock);
spin_unlock(&boot_lock);
}
Expand All @@ -95,14 +93,13 @@ int __cpuinit platform_boot_secondary(unsigned int cpu, struct task_struct *idle

timeout = jiffies + 1 * HZ;
while (time_before(jiffies, timeout)) {
if (cpu_isset(cpu, cpu_callin_map))
if (cpu_online(cpu))
break;
udelay(100);
barrier();
}

if (cpu_isset(cpu, cpu_callin_map)) {
cpu_set(cpu, cpu_online_map);
if (cpu_online(cpu)) {
/* release the lock and let coreb run */
spin_unlock(&boot_lock);
return 0;
Expand Down

0 comments on commit 7250141

Please sign in to comment.