Linux MIPS Architecture development
 help / color / mirror / Atom feed
* init_idle reaped before final call
@ 2002-03-05 19:58 Kip Walker
  0 siblings, 0 replies; 3+ messages in thread
From: Kip Walker @ 2002-03-05 19:58 UTC (permalink / raw)
  To: linux-mips


[cross-posted to linux-kernel in a separate mail (oops)]

I'm working with a (approximately) 2.4.17 kernel from the mips-linux
tree (oss.sgi.com).

I'd like to propose removing the "__init" designation from init_idle in
kernel/sched.c, since this is called from rest_init via cpu_idle. 
Notice that rest_init isn't in an init section, and explicitly mentions
that it's avoiding a race with free_initmem.  In my kernel (an SMP
kernel running on a system with only 1 available CPU), cpu_idle isn't
getting called until after free_initmem().

My CPU is MIPS, but it looks like x86 could experience the same problem.

Kip

Index: kernel/sched.c
===================================================================
RCS file:
/projects/bbp/cvsroot/systemsw/linux/src/kernel/kernel/sched.c,v
retrieving revision 1.10
diff -u -r1.10 sched.c
--- kernel/sched.c      2002/01/15 04:13:43     1.10
+++ kernel/sched.c      2002/03/05 19:40:14
@@ -1304,7 +1304,7 @@
 
 extern unsigned long wait_init_idle;
 
-void __init init_idle(void)
+void init_idle(void)
 {
        struct schedule_data * sched_data;
        sched_data = &aligned_data[smp_processor_id()].schedule_data;

^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <3C8522EA.2A00E880@broadcom.com>]

end of thread, other threads:[~2002-03-06  0:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-05 19:58 init_idle reaped before final call Kip Walker
     [not found] <3C8522EA.2A00E880@broadcom.com>
     [not found] ` <292270000.1015365429@flay>
2002-03-05 22:15   ` Kip Walker
2002-03-05 23:33     ` Justin Carlson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox