• Andrew Morton's avatar
    [PATCH] fix possible busywait in rtc_read() · 1e955536
    Andrew Morton authored
    If two processes are waiting in rtc_read(), only one will get the data.  The
    other will madly spin around theloop in state TASK_RUNNING until another
    interrupt happens.
    
    Fix it by resetting TASK_INTERRUPTIBLE _inside_ the retry loop.
    1e955536
rtc.c 29.6 KB