Commit ea58f8e5 authored by Maximilian Attems's avatar Maximilian Attems Committed by Linus Torvalds

[PATCH] radio/radio-aimslab: replace while/schedule() with msleep()

Uses msleep() instead of a while-loop and schedule().  Thus the CPU is
given up for the time desired.
Signed-off-by: default avatarNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: default avatarMaximilian Attems <janitor@sternwelten.at>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 3a4e4e06
......@@ -63,12 +63,7 @@ static void sleep_delay(long n)
if(!d)
udelay(n);
else
{
/* Yield CPU time */
unsigned long x=jiffies;
while((jiffies-x)<=d)
schedule();
}
msleep(jiffies_to_msecs(d));
}
static void rt_decvol(void)
......
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