summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorNicholas Mc Guire2015-05-27 18:02:38 +0200
committerGreg Kroah-Hartman2015-05-31 04:40:14 +0200
commit3f8ded9d9c353cffe36e7d36c2a4bbdcb26bc5c1 (patch)
treee76eb0a3dee6b96d5653b2aa3cdfd115bf94ad98 /drivers
parentstaging: rts5208: fix transfer length 0 for 6-byte r/w commands (diff)
downloadkernel-qcow2-linux-3f8ded9d9c353cffe36e7d36c2a4bbdcb26bc5c1.tar.gz
kernel-qcow2-linux-3f8ded9d9c353cffe36e7d36c2a4bbdcb26bc5c1.tar.xz
kernel-qcow2-linux-3f8ded9d9c353cffe36e7d36c2a4bbdcb26bc5c1.zip
staging: rts5208: pass timeout as HZ independent value
schedule_timeout takes a timeout in jiffies but the code currently is passing in a constant POLLING_INTERVAL which makes this timeout HZ dependent, so pass it through msecs_to_jiffies() to fix this up. patch was compile tested for x86_64_defconfig + CONFIG_STAGING=y, CONFIG_RTS5208=m Patch is against 4.0-rc5 (localversion-next is -next-20150527) Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/rts5208/rtsx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c
index d64b6ed9c0c9..1bcadba07fd0 100644
--- a/drivers/staging/rts5208/rtsx.c
+++ b/drivers/staging/rts5208/rtsx.c
@@ -537,7 +537,7 @@ static int rtsx_polling_thread(void *__dev)
for (;;) {
set_current_state(TASK_INTERRUPTIBLE);
- schedule_timeout(POLLING_INTERVAL);
+ schedule_timeout(msecs_to_jiffies(POLLING_INTERVAL));
/* lock the device pointers */
mutex_lock(&(dev->dev_mutex));