diff options
author | Cho, Yu-Chen <acho@novell.com> | 2011-05-03 17:53:35 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-05-03 12:48:37 -0700 |
commit | da548cb3f1ec3b1fd4ec2a848401398462ce3124 (patch) | |
tree | 4d11830ceedbb2f5a4d5ab4d0ac97d39c5cda078 /drivers | |
parent | 56aec662152b57c57191c5407cebcf5a09a74a70 (diff) | |
download | linux-3.10-da548cb3f1ec3b1fd4ec2a848401398462ce3124.tar.gz linux-3.10-da548cb3f1ec3b1fd4ec2a848401398462ce3124.tar.bz2 linux-3.10-da548cb3f1ec3b1fd4ec2a848401398462ce3124.zip |
staging/rts_pstor: fix Polling thread wakeups CPU
RealTek PCI-E Card Reader rts_pstor driver causes CPU wakeup very
frequently, thatt's bad for power consumption.
Signed-off-by: Cho, Yu-Chen <acho@novell.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/rts_pstor/rtsx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/rts_pstor/rtsx.c b/drivers/staging/rts_pstor/rtsx.c index 02525d57ba8..5ff59f27d10 100644 --- a/drivers/staging/rts_pstor/rtsx.c +++ b/drivers/staging/rts_pstor/rtsx.c @@ -594,7 +594,9 @@ static int rtsx_polling_thread(void *__dev) wait_timeout((delay_use + 5) * 1000); for (;;) { - wait_timeout(POLLING_INTERVAL); + + set_current_state(TASK_INTERRUPTIBLE); + schedule_timeout(POLLING_INTERVAL); /* lock the device pointers */ mutex_lock(&(dev->dev_mutex)); |