Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2b79aac9038ee52fd8d89216b1a3ec9bd8285fac
Commit:     2b79aac9038ee52fd8d89216b1a3ec9bd8285fac
Parent:     e855e5d82edd708bcb966cf7ccda2dee1c154935
Author:     David Howells <[EMAIL PROTECTED]>
AuthorDate: Tue Feb 19 18:58:49 2008 +0000
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue Feb 19 15:51:36 2008 -0800

    MN10300: Call update_process_times() outside of the xtime_lock
    
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 arch/mn10300/kernel/time.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/mn10300/kernel/time.c b/arch/mn10300/kernel/time.c
index ff492e3..babb7c2 100644
--- a/arch/mn10300/kernel/time.c
+++ b/arch/mn10300/kernel/time.c
@@ -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;
 }
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to