Skip to content

Commit

Permalink
arch/tile: enable interrupts in do_work_pending()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Metcalf committed Oct 12, 2012
1 parent d20f2f8 commit c19c6c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/tile/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,9 @@ int do_work_pending(struct pt_regs *regs, u32 thread_info_flags)
if (!user_mode(regs))
return 0;

/* Enable interrupts; they are disabled again on return to caller. */
local_irq_enable();

if (thread_info_flags & _TIF_NEED_RESCHED) {
schedule();
return 1;
Expand Down

0 comments on commit c19c6c9

Please sign in to comment.