Commit 7cc1712b authored by Coywolf Qi Hunt's avatar Coywolf Qi Hunt Committed by David S. Miller

[SPARC]: Remove legacy stuff from cpu_idle().

Currently sparc and sparc64's UP cpu_idle() checks current pid. This
is old time legacy. Now it's paranoia.
Signed-off-by: default avatarCoywolf Qi Hunt <coywolf@lovecn.org>
Acked-by: default avatarWilliam Irwin <wli@holomorphy.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8edf72eb
...@@ -83,9 +83,6 @@ void default_idle(void) ...@@ -83,9 +83,6 @@ void default_idle(void)
*/ */
void cpu_idle(void) void cpu_idle(void)
{ {
if (current->pid != 0)
goto out;
/* endless idle loop with no priority at all */ /* endless idle loop with no priority at all */
for (;;) { for (;;) {
if (ARCH_SUN4C_SUN4) { if (ARCH_SUN4C_SUN4) {
...@@ -126,8 +123,6 @@ void cpu_idle(void) ...@@ -126,8 +123,6 @@ void cpu_idle(void)
schedule(); schedule();
check_pgt_cache(); check_pgt_cache();
} }
out:
return;
} }
#else #else
......
...@@ -62,9 +62,6 @@ void default_idle(void) ...@@ -62,9 +62,6 @@ void default_idle(void)
*/ */
void cpu_idle(void) void cpu_idle(void)
{ {
if (current->pid != 0)
return;
/* endless idle loop with no priority at all */ /* endless idle loop with no priority at all */
for (;;) { for (;;) {
/* If current->work.need_resched is zero we should really /* If current->work.need_resched is zero we should really
...@@ -80,7 +77,6 @@ void cpu_idle(void) ...@@ -80,7 +77,6 @@ void cpu_idle(void)
schedule(); schedule();
check_pgt_cache(); check_pgt_cache();
} }
return;
} }
#else #else
......
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