aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorWilliam Lee Irwin III <wli@holomorphy.com>2004-08-07 00:53:10 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-07 00:53:10 -0700
commita87d37612d8ead85a7c4f4f74c4eda2794e10d1c (patch)
tree30b1d89838ea3116330da7793b6b7b3b5b31822a /arch
parent10534d175d5bbd552037766dcf3862665f7a18a7 (diff)
downloadhistory-a87d37612d8ead85a7c4f4f74c4eda2794e10d1c.tar.gz
[PATCH] sparc32: sparc32 init_idle()
An analysis of the code determined that AP initialization called init_idle() no less than three times, 2 out of the three with incorrect numbers of arguments. This patch removes the superfluous calls. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sparc/kernel/sun4d_smp.c2
-rw-r--r--arch/sparc/kernel/sun4m_smp.c2
-rw-r--r--arch/sparc/kernel/trampoline.S2
3 files changed, 0 insertions, 6 deletions
diff --git a/arch/sparc/kernel/sun4d_smp.c b/arch/sparc/kernel/sun4d_smp.c
index e5e13490357077..791f2c4dc78de7 100644
--- a/arch/sparc/kernel/sun4d_smp.c
+++ b/arch/sparc/kernel/sun4d_smp.c
@@ -100,8 +100,6 @@ void __init smp4d_callin(void)
* the SMP initialization the master will be just allowed
* to call the scheduler code.
*/
- init_idle();
-
/* Get our local ticker going. */
smp_setup_percpu_timer();
diff --git a/arch/sparc/kernel/sun4m_smp.c b/arch/sparc/kernel/sun4m_smp.c
index 01587b1608195b..4e686af0778ae9 100644
--- a/arch/sparc/kernel/sun4m_smp.c
+++ b/arch/sparc/kernel/sun4m_smp.c
@@ -95,8 +95,6 @@ void __init smp4m_callin(void)
* the SMP initialization the master will be just allowed
* to call the scheduler code.
*/
- init_idle();
-
/* Allow master to continue. */
swap((unsigned long *)&cpu_callin_map[cpuid], 1);
diff --git a/arch/sparc/kernel/trampoline.S b/arch/sparc/kernel/trampoline.S
index 1db353f4668ef6..2dcdaa1fd8cd9e 100644
--- a/arch/sparc/kernel/trampoline.S
+++ b/arch/sparc/kernel/trampoline.S
@@ -88,8 +88,6 @@ cpu3_startup:
.align 4
smp_do_cpu_idle:
- call init_idle
- nop
call cpu_idle
mov 0, %o0