[SPARC]: Remove legacy stuff from cpu_idle().
authorCoywolf Qi Hunt <coywolf@lovecn.org>
Thu, 5 May 2005 21:53:01 +0000 (14:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 May 2005 21:53:01 +0000 (14:53 -0700)
Currently sparc and sparc64's UP cpu_idle() checks current pid. This
is old time legacy. Now it's paranoia.

Signed-off-by: Coywolf Qi Hunt <coywolf@lovecn.org>
Acked-by: William Irwin <wli@holomorphy.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/process.c
arch/sparc64/kernel/process.c

index 066e253f9c124fd1c29de3a42f2ee14ffa41ac8d..2c216ffeea90b61535eae1cd37d07b7f9acdb479 100644 (file)
@@ -83,9 +83,6 @@ void default_idle(void)
  */
 void cpu_idle(void)
 {
-       if (current->pid != 0)
-               goto out;
-
        /* endless idle loop with no priority at all */
        for (;;) {
                if (ARCH_SUN4C_SUN4) {
@@ -126,8 +123,6 @@ void cpu_idle(void)
                schedule();
                check_pgt_cache();
        }
-out:
-       return;
 }
 
 #else
index 26d3ec41da1c376fbe855ec1253c56c327fed43f..a0cd2b2494d6cc5f111faeed82a42ab96ba99323 100644 (file)
@@ -62,9 +62,6 @@ void default_idle(void)
  */
 void cpu_idle(void)
 {
-       if (current->pid != 0)
-               return;
-
        /* endless idle loop with no priority at all */
        for (;;) {
                /* If current->work.need_resched is zero we should really
@@ -80,7 +77,6 @@ void cpu_idle(void)
                schedule();
                check_pgt_cache();
        }
-       return;
 }
 
 #else