lkml.org 
[lkml]   [2009]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [rtc-linux] Re: [PATCH] rtc: Make rtc_update_irq callable with irqs enabled
    On Thu, 23 Apr 2009 12:45:32 -0700
    David Brownell <david-b@pacbell.net> wrote:

    > If the spinlock is *ever* acquired with IRQs disabled,
    > it must *always* be acquired that way.
    >
    > The typical use is ... from IRQ context, which will in
    > some cases mean IRQs disabled. QED.

    the spinlock could be acquired with IRQs disabled,
    with spin_lock_irq, in the alarm setup functions and
    acquired with the standard spinlock calls in the irq
    handler.

    would it work?

    --

    Best regards,

    Alessandro Zummo,
    Tower Technologies - Torino, Italy

    http://www.towertech.it



    \
     
     \ /
      Last update: 2009-04-23 21:59    [W:4.656 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site