lkml.org 
[lkml]   [2009]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateSat, 25 Apr 2009 02:06:12 +0900 (JST)
SubjectRe: [rtc-linux] Re: [PATCH] rtc: Make rtc_update_irq callable with irqs enabled
FromAtsushi Nemoto <>
On Sat, 25 Apr 2009 01:48:50 +0900 (JST), Atsushi Nemoto <anemo@mba.ocn.ne.jp> wrote:
> Here is a possible example:
>
> 1. RTC alarm interrupt handler takes rtc->irq_lock by spin_lock()
> 2. A timer interrupt handler calls rtc_uie_timer() for UIE emulation
> 3. rtc_uie_timer() waits on rtc->irq_lock .... deadlock!

Oops, this is wrong. This deadlock cannot happen since
rtc_uie_timer() will be called in bh (softirq) context, not interrupt
context.

Anyway, I just posted updated patch. Please take a look. Thanks.

---
Atsushi Nemoto

\
 
 \ /
  Last update: 2009-04-24 19:09    [from the cache]
©2003-2010