]> git.karo-electronics.de Git - karo-tx-linux.git/commit
arch/tile: use a cleaner technique to enable interrupt for cpu_idle()
authorChris Metcalf <cmetcalf@tilera.com>
Mon, 28 Feb 2011 20:22:40 +0000 (15:22 -0500)
committerChris Metcalf <cmetcalf@tilera.com>
Tue, 1 Mar 2011 21:20:48 +0000 (16:20 -0500)
commit0b989cac90144565b8780ddde36e6a927f8ca7ba
tree5867cd253d019b8e23e9e581482c87551b32accb
parenta5c149c8a00b247749d0f18c13b130069dcc36e3
arch/tile: use a cleaner technique to enable interrupt for cpu_idle()

Previously we used iret to atomically return to kernel PL with
interrupts enabled.  However, it turns out that we are architecturally
guaranteed that we can just set and clear the "interrupt critical
section" and only interrupt on the following instruction, so we
now do that instead, since it's cleaner.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/kernel/entry.S