Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Nicholas Mc Guire and committed by
Greg Kroah-Hartman
3f8ded9d 8ee0df0d

+1 -1
+1 -1
drivers/staging/rts5208/rtsx.c
··· 537 537 for (;;) { 538 538 539 539 set_current_state(TASK_INTERRUPTIBLE); 540 - schedule_timeout(POLLING_INTERVAL); 540 + schedule_timeout(msecs_to_jiffies(POLLING_INTERVAL)); 541 541 542 542 /* lock the device pointers */ 543 543 mutex_lock(&(dev->dev_mutex));