]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: let the core code deal with preempt_count
authorMarc Zyngier <Marc.Zyngier@arm.com>
Tue, 12 Nov 2013 17:11:53 +0000 (17:11 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 25 Nov 2013 16:44:04 +0000 (16:44 +0000)
commit8ba38852c987e14f886ac0ccd886281ef4cc6fe9
treec7a08390c969b4dcdc93faeb0648f58111395b83
parent446a01ebfd5c46dcad993153e533f5f1d30e2d44
arm64: let the core code deal with preempt_count

Commit dbb4cffa02cb (sched: Add NEED_RESCHED to the preempt_count)
introduced the use of bit 31 in preempt_count for obscure scheduling
purposes.

This causes interrupts taken from EL0 to hit the (open coded) BUG when
this flag is flipped while handling the interrupt (we compare the
values before and after, and kill the kernel if they are different).

The fix is to stop messing with the preempt count entirely, as this
is already being dealt with in the generic code (irq_enter/irq_exit).

Tested on a dual A53 FPGA running cyclictest.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/entry.S