Skip to content

Commit 7cc1712

Browse files
Coywolf Qi Huntdavem330
authored andcommitted
[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: Coywolf Qi Hunt <coywolf@lovecn.org> Acked-by: William Irwin <wli@holomorphy.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8edf72e commit 7cc1712

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

‎arch/sparc/kernel/process.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ void default_idle(void)
8383
*/
8484
void cpu_idle(void)
8585
{
86-
if (current->pid != 0)
87-
goto out;
88-
8986
/* endless idle loop with no priority at all */
9087
for (;;) {
9188
if (ARCH_SUN4C_SUN4) {
@@ -126,8 +123,6 @@ void cpu_idle(void)
126123
schedule();
127124
check_pgt_cache();
128125
}
129-
out:
130-
return;
131126
}
132127

133128
#else

‎arch/sparc64/kernel/process.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ void default_idle(void)
6262
*/
6363
void cpu_idle(void)
6464
{
65-
if (current->pid != 0)
66-
return;
67-
6865
/* endless idle loop with no priority at all */
6966
for (;;) {
7067
/* If current->work.need_resched is zero we should really
@@ -80,7 +77,6 @@ void cpu_idle(void)
8077
schedule();
8178
check_pgt_cache();
8279
}
83-
return;
8480
}
8581

8682
#else

0 commit comments

Comments
 (0)