lkml.org 
[lkml]   [2001]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: IRQ and sleep_on
    Date

    christophe.barbe@inup.com said:
    > It seems to be ok. I've no more bad sleeps or more exactly rarely and
    > that why I submit this to you. Is my way to do it correct ? I've
    > joined at the end of this mail the modified function.

    You can't restore flags in a different function to the one you saved them
    in. It'll break.

    You should probably be using the wait_event() macro instead, which does
    something similar - actually it performs the check after setting up the wait
    queue, rather than releasing the lock.

    --
    dwmw2


    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 12:56    [W:0.022 / U:29.724 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site