summaryrefslogtreecommitdiffstats
path: root/arch/openrisc/kernel
diff options
context:
space:
mode:
authorStafford Horne <shorne@gmail.com>2017-07-12 10:20:38 +0200
committerStafford Horne <shorne@gmail.com>2017-11-03 06:01:14 +0100
commitb441aab7aa0e15955c432736b08a218a6a4c77f0 (patch)
treec285dfe1d0331f01088161f7dca67f204f6fec5a /arch/openrisc/kernel
parentopenrisc: initial SMP support (diff)
downloadlinux-b441aab7aa0e15955c432736b08a218a6a4c77f0.tar.xz
linux-b441aab7aa0e15955c432736b08a218a6a4c77f0.zip
openrisc: fix initial preempt state for secondary cpu tasks
During SMP testing we were getting the below warning after booting the secondary cpu: [ 0.060000] BUG: scheduling while atomic: swapper/1/0/0x00000000 This change follows similar patterns from other architectures to start the schduler with preempt disabled. Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'arch/openrisc/kernel')
-rw-r--r--arch/openrisc/kernel/smp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/openrisc/kernel/smp.c b/arch/openrisc/kernel/smp.c
index fd724123229a..154c94a0cfbc 100644
--- a/arch/openrisc/kernel/smp.c
+++ b/arch/openrisc/kernel/smp.c
@@ -128,6 +128,7 @@ asmlinkage __init void secondary_start_kernel(void)
local_irq_enable();
+ preempt_disable();
/*
* OK, it's off to the idle thread for us
*/