]> rtime.felk.cvut.cz Git - linux-imx.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)
commit1ee6f5669a7eaba0e2f4e0dd0599b56eb8a9a090
tree89436eb93201d47f625b92bb36a9f9763fae0b7e
parenteded09ccf58ab00474ccde547dd525c75dbc28fd
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