mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
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>
This commit is contained in:
parent
56aec66215
commit
da548cb3f1
1 changed files with 3 additions and 1 deletions
|
@ -594,7 +594,9 @@ static int rtsx_polling_thread(void *__dev)
|
||||||
wait_timeout((delay_use + 5) * 1000);
|
wait_timeout((delay_use + 5) * 1000);
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
wait_timeout(POLLING_INTERVAL);
|
|
||||||
|
set_current_state(TASK_INTERRUPTIBLE);
|
||||||
|
schedule_timeout(POLLING_INTERVAL);
|
||||||
|
|
||||||
/* lock the device pointers */
|
/* lock the device pointers */
|
||||||
mutex_lock(&(dev->dev_mutex));
|
mutex_lock(&(dev->dev_mutex));
|
||||||
|
|
Loading…
Reference in a new issue