diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2012-10-12 15:38:54 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2012-10-12 15:38:54 -0400 |
commit | c19c6c954b9b264abdc21e0c855118e3daf019b0 (patch) | |
tree | 4c9c553dfd94191da7c14910ae1f2790870979c4 /arch/tile/kernel/process.c | |
parent | d20f2f83b2374c1cee042981cb45493a3e06b6a5 (diff) |
arch/tile: enable interrupts in do_work_pending()
All the called functions expect interrupts to be enabled, and
now one of them has started to warn about it, so make it correct.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/kernel/process.c')
-rw-r--r-- | arch/tile/kernel/process.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/tile/kernel/process.c b/arch/tile/kernel/process.c index 6be799150501..4f1a2413e865 100644 --- a/arch/tile/kernel/process.c +++ b/arch/tile/kernel/process.c | |||
@@ -548,6 +548,9 @@ int do_work_pending(struct pt_regs *regs, u32 thread_info_flags) | |||
548 | if (!user_mode(regs)) | 548 | if (!user_mode(regs)) |
549 | return 0; | 549 | return 0; |
550 | 550 | ||
551 | /* Enable interrupts; they are disabled again on return to caller. */ | ||
552 | local_irq_enable(); | ||
553 | |||
551 | if (thread_info_flags & _TIF_NEED_RESCHED) { | 554 | if (thread_info_flags & _TIF_NEED_RESCHED) { |
552 | schedule(); | 555 | schedule(); |
553 | return 1; | 556 | return 1; |