diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-10 13:12:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-10 13:12:58 -0400 |
commit | 49283f602039e3b81930c4ab5cc20e310b84c7ff (patch) | |
tree | 92767caa076c66986a4c963592cbb8aedb85f967 /arch/blackfin/mach-bf561/smp.c | |
parent | 8f041e6ca1901d7dbf017e6db67c264117211b8a (diff) | |
parent | 150382a53d11256e5666c86525c8bf8d23684532 (diff) |
Merge tag 'blackfin-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/realmz6/blackfin-linux
Pull blackfin updates from Steven Miao:
"blackfin updates for Linux 3.11"
* tag 'blackfin-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/realmz6/blackfin-linux:
smp: refine bf561 smpboot code
bf609: stmmac: fix build after stmmac_mdio_bus_data changed
bf609: add cpu revision 0.1
bf609: rename bfin6xx_spi to bfin_spi3
kgdb: blackfin: include irq_regs.h in kgdb.c
Diffstat (limited to 'arch/blackfin/mach-bf561/smp.c')
-rw-r--r-- | arch/blackfin/mach-bf561/smp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/blackfin/mach-bf561/smp.c b/arch/blackfin/mach-bf561/smp.c index ab1c617b9cfc..c77a23bc9de3 100644 --- a/arch/blackfin/mach-bf561/smp.c +++ b/arch/blackfin/mach-bf561/smp.c | |||
@@ -69,7 +69,6 @@ void __cpuinit platform_secondary_init(unsigned int cpu) | |||
69 | SSYNC(); | 69 | SSYNC(); |
70 | 70 | ||
71 | /* We are done with local CPU inits, unblock the boot CPU. */ | 71 | /* We are done with local CPU inits, unblock the boot CPU. */ |
72 | set_cpu_online(cpu, true); | ||
73 | spin_lock(&boot_lock); | 72 | spin_lock(&boot_lock); |
74 | spin_unlock(&boot_lock); | 73 | spin_unlock(&boot_lock); |
75 | } | 74 | } |
@@ -91,7 +90,9 @@ int __cpuinit platform_boot_secondary(unsigned int cpu, struct task_struct *idle | |||
91 | SSYNC(); | 90 | SSYNC(); |
92 | } | 91 | } |
93 | 92 | ||
94 | timeout = jiffies + 1 * HZ; | 93 | timeout = jiffies + HZ; |
94 | /* release the lock and let coreb run */ | ||
95 | spin_unlock(&boot_lock); | ||
95 | while (time_before(jiffies, timeout)) { | 96 | while (time_before(jiffies, timeout)) { |
96 | if (cpu_online(cpu)) | 97 | if (cpu_online(cpu)) |
97 | break; | 98 | break; |
@@ -100,8 +101,6 @@ int __cpuinit platform_boot_secondary(unsigned int cpu, struct task_struct *idle | |||
100 | } | 101 | } |
101 | 102 | ||
102 | if (cpu_online(cpu)) { | 103 | if (cpu_online(cpu)) { |
103 | /* release the lock and let coreb run */ | ||
104 | spin_unlock(&boot_lock); | ||
105 | return 0; | 104 | return 0; |
106 | } else | 105 | } else |
107 | panic("CPU%u: processor failed to boot\n", cpu); | 106 | panic("CPU%u: processor failed to boot\n", cpu); |