Skip to content

Commit

Permalink
MN10300: Call update_process_times() outside of the xtime_lock
Browse files Browse the repository at this point in the history
Call update_process_times() outside of the xtime_lock.  Somewhere somewhere
inside one of the functions called by that, xtime_lock is readlocked, which
ends up in a deadlock situation.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
David Howells authored and Linus Torvalds committed Feb 19, 2008
1 parent e855e5d commit 2b79aac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/mn10300/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,13 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id)
/* advance the kernel's time tracking system */
profile_tick(CPU_PROFILING);
do_timer(1);
update_process_times(user_mode(get_irq_regs()));
check_rtc_time();
}

write_sequnlock(&xtime_lock);

update_process_times(user_mode(get_irq_regs()));

return IRQ_HANDLED;
}

Expand Down

0 comments on commit 2b79aac

Please sign in to comment.