]> git.baikalelectronics.ru Git - kernel.git/commit
FRV: Fix the preemption handling
authorDavid Howells <dhowells@redhat.com>
Fri, 2 Nov 2012 13:20:42 +0000 (13:20 +0000)
committerDavid Howells <dhowells@redhat.com>
Fri, 2 Nov 2012 13:20:42 +0000 (13:20 +0000)
commit5aafda720afa9c9370d5909e594edf8890a74682
tree89436eb93201d47f625b92bb36a9f9763fae0b7e
parent51af0e2d3d2f9e9444e36057a7a371e26bf2881f
FRV: Fix the preemption handling

Fix the preemption handling in FRV code where the PREEMPT_ACTIVE value is
incorrectly loaded into the threadinfo flags rather than the threadinfo
preemption count.

Unfortunately, the code cannot be simply converted to use
preempt_schedule_irq() as is because FRV uses virtual interrupt disablement to
cut down on the cost of actually disabling interrupts and thus
local_irq_enable() doesn't actually enable interrupts.

Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Al Viro <viro@ZenIV.linux.org.uk>
arch/frv/kernel/entry.S