[PATCH] fix possible busywait in rtc_read()
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.
Showing
Please register or sign in to comment