commit | 0b989cac90144565b8780ddde36e6a927f8ca7ba | [log] [tgz] |
---|---|---|
author | Chris Metcalf <cmetcalf@tilera.com> | Mon Feb 28 15:22:40 2011 -0500 |
committer | Chris Metcalf <cmetcalf@tilera.com> | Tue Mar 01 16:20:48 2011 -0500 |
tree | 5867cd253d019b8e23e9e581482c87551b32accb | |
parent | a5c149c8a00b247749d0f18c13b130069dcc36e3 [diff] |
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>