summaryrefslogtreecommitdiff
path: root/include/linux/init_task.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2003-06-10 10:08:54 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2003-06-10 10:08:54 -0700
commit1e9555367098ea643bec15da52ca3baaebfcfa42 (patch)
treee68d09bdf7afe09da8955fbc9df46feb2420b5bb /include/linux/init_task.h
parentb04ed0eef5f882267309fbdbd00d5ad55e8152d3 (diff)
[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.
Diffstat (limited to 'include/linux/init_task.h')
0 files changed, 0 insertions, 0 deletions