]> git.baikalelectronics.ru Git - kernel.git/commit
MN10300: Fix the preemption resume_kernel() routine
authorAkira Takeuchi <takeuchi.akr@jp.panasonic.com>
Wed, 10 Dec 2008 12:43:29 +0000 (12:43 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 10 Dec 2008 21:34:33 +0000 (13:34 -0800)
commitd0dfd650fb4d08121831b74b942f22b98124e8c4
tree48c12583f152f688ff9e401cb99d48807c489b85
parent39009f77b591ddfa0462186ed1f806502cb3e1ed
MN10300: Fix the preemption resume_kernel() routine

Fix the preemption resume_kernel() routine by inverting the test to see
whether interrupts are off (IM7 is all enabled, not all disabled).

Furthermore, interrupts should be disabled on entry to resume_kernel() so that
they're correctly set for jumping to restore_all() and doing the need
reschedule test.

Signed-off-by: Akira Takeuchi <takeuchi.akr@jp.panasonic.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/mn10300/kernel/entry.S