From d4a0b5758d0aaae09439975c162294de99e13cc8 Mon Sep 17 00:00:00 2001 From: "Cho, Yu-Chen" Date: Tue, 3 May 2011 17:53:35 +0800 Subject: [PATCH] --- yaml --- r: 249345 b: refs/heads/master c: da548cb3f1ec3b1fd4ec2a848401398462ce3124 h: refs/heads/master i: 249343: bd5b9c42531d8b2415aa2fae85c3186407aada7d v: v3 --- [refs] | 2 +- trunk/drivers/staging/rts_pstor/rtsx.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index f728be460f90..a265f9e17ca7 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 56aec662152b57c57191c5407cebcf5a09a74a70 +refs/heads/master: da548cb3f1ec3b1fd4ec2a848401398462ce3124 diff --git a/trunk/drivers/staging/rts_pstor/rtsx.c b/trunk/drivers/staging/rts_pstor/rtsx.c index 02525d57ba83..5ff59f27d101 100644 --- a/trunk/drivers/staging/rts_pstor/rtsx.c +++ b/trunk/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));