summaryrefslogtreecommitdiff
path: root/arch/openrisc/include
diff options
context:
space:
mode:
authorStafford Horne <shorne@gmail.com>2017-07-12 11:20:38 +0300
committerStafford Horne <shorne@gmail.com>2017-11-03 08:01:14 +0300
commitb441aab7aa0e15955c432736b08a218a6a4c77f0 (patch)
treec285dfe1d0331f01088161f7dca67f204f6fec5a /arch/openrisc/include
parent8e6d08e0a15e7d4d4b608b56597350d4cdd77710 (diff)
downloadlinux-b441aab7aa0e15955c432736b08a218a6a4c77f0.tar.xz
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/include')
-rw-r--r--arch/openrisc/include/asm/thread_info.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/openrisc/include/asm/thread_info.h b/arch/openrisc/include/asm/thread_info.h
index 6e619a79a401..c229aa6bb502 100644
--- a/arch/openrisc/include/asm/thread_info.h
+++ b/arch/openrisc/include/asm/thread_info.h
@@ -74,7 +74,7 @@ struct thread_info {
.task = &tsk, \
.flags = 0, \
.cpu = 0, \
- .preempt_count = 1, \
+ .preempt_count = INIT_PREEMPT_COUNT, \
.addr_limit = KERNEL_DS, \
.ksp = 0, \
}