]> git.baikalelectronics.ru Git - kernel.git/commit
openrisc: fix initial preempt state for secondary cpu tasks
authorStafford Horne <shorne@gmail.com>
Wed, 12 Jul 2017 08:20:38 +0000 (17:20 +0900)
committerStafford Horne <shorne@gmail.com>
Fri, 3 Nov 2017 05:01:14 +0000 (14:01 +0900)
commit8aeb1f43ac659c9d52781ee878b5965712e5e66e
treec285dfe1d0331f01088161f7dca67f204f6fec5a
parent952394e5bf630635e804c5f48f674b9d71d206d6
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>
arch/openrisc/include/asm/thread_info.h
arch/openrisc/kernel/smp.c