projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56aec66
)
staging/rts_pstor: fix Polling thread wakeups CPU
author
Cho, Yu-Chen
<acho@novell.com>
Tue, 3 May 2011 09:53:35 +0000
(17:53 +0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 3 May 2011 19:48:37 +0000
(12:48 -0700)
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>
drivers/staging/rts_pstor/rtsx.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/rts_pstor/rtsx.c
b/drivers/staging/rts_pstor/rtsx.c
index 02525d57ba83c8bb5278200baaed59b267bc6a0b..5ff59f27d101cf341f6660b98fb2945482957a4f 100644
(file)
--- 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));