Skip to content

Commit

Permalink
[SPARC]: Remove legacy stuff from cpu_idle().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Coywolf Qi Hunt authored and David S. Miller committed May 5, 2005
1 parent 8edf72e commit 7cc1712
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions arch/sparc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -126,8 +123,6 @@ void cpu_idle(void)
schedule();
check_pgt_cache();
}
out:
return;
}

#else
Expand Down
4 changes: 0 additions & 4 deletions arch/sparc64/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -80,7 +77,6 @@ void cpu_idle(void)
schedule();
check_pgt_cache();
}
return;
}

#else
Expand Down

0 comments on commit 7cc1712

Please sign in to comment.