lkml.org 
[lkml]   [2009]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: + hpsa-use-msleep-instead-of-schedule_timeout.patch added to -mm tree
On 12/08/2009 11:25 PM, Jiri Slaby wrote:
>> @@ -3302,7 +3302,8 @@ static int __devinit hpsa_init_one(struc
>>
>> /* Some devices (notably the HP Smart Array 5i Controller)
>> need a little pause here */
>> - schedule_timeout_uninterruptible(HPSA_POST_RESET_PAUSE);
>> + set_current_state(TASK_UNINTERRUPTIBLE);
>> + msleep(HPSA_POST_RESET_PAUSE_MSECS);
>
> Hmm, setting the state is superfluous, as msleep does the job itself.

(FWIW addressed by Andrew already.)

--
js


\
 
 \ /
  Last update: 2009-12-08 23:29    [W:0.050 / U:0.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site