projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
powerpc/rtas: Only sleep in rtas_busy_delay if we have useful work to do
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
arch
/
powerpc
/
kernel
/
rtas.c
diff --git
a/arch/powerpc/kernel/rtas.c
b/arch/powerpc/kernel/rtas.c
index
2097f2b
..
f484466
100644
(file)
--- a/
arch/powerpc/kernel/rtas.c
+++ b/
arch/powerpc/kernel/rtas.c
@@
-494,7
+494,7
@@
unsigned int rtas_busy_delay(int status)
might_sleep();
ms = rtas_busy_delay_time(status);
- if (ms)
+ if (ms
&& need_resched()
)
msleep(ms);
return ms;