[<prev] [next>] [day] [month] [year] [list]
Message-Id: <ef04e68f674a4175dccdb7f4cf04f419199051b6.1304415652.git.acho@novell.com>
Date: Tue, 3 May 2011 17:53:35 +0800
From: "Cho, Yu-Chen" <acho@...ell.com>
To: devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
gregkh@...e.de, wei_wang@...lsil.com.cn
Cc: segoon@...nwall.com, a.beregalov@...il.com, jlee@...ell.com,
acho@...ell.com
Subject: [PATCH] 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@...ell.com>
---
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 02525d5..5ff59f2 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));
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists