Commit 155c26fd authored by Nishanth Aravamudan's avatar Nishanth Aravamudan Committed by David S. Miller

[SPARC]: bbc_envctrl: Replace schedule_timeout() with msleep().

Signed-off-by: default avatarNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent f8fe1c4d
...@@ -622,9 +622,7 @@ void bbc_envctrl_cleanup(void) ...@@ -622,9 +622,7 @@ void bbc_envctrl_cleanup(void)
read_unlock(&tasklist_lock); read_unlock(&tasklist_lock);
if (!found) if (!found)
break; break;
current->state = TASK_INTERRUPTIBLE; msleep(1000);
schedule_timeout(HZ);
current->state = TASK_RUNNING;
} }
kenvctrld_task = NULL; kenvctrld_task = NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment