lkml.org 
[lkml]   [2004]   [Aug]   [6]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateThu, 5 Aug 2004 21:39:15 -0700
FromWilliam Lee Irwin III <>
SubjectRe: 2.6.8-rc3-mm1
On Thu, Aug 05, 2004 at 08:34:48PM -0700, William Lee Irwin III wrote:
>> It appears that init_idle() and fork_by_hand() could be combined into
>> a single method that calls init_idle() on behalf of the caller, which
>> would amount to something like:
>> task_t * __init fork_idle(int cpu)

On Thu, Aug 05, 2004 at 09:24:20PM -0700, William Lee Irwin III wrote:
> Atop the full 2.6.8-rc3-mm1 series:

Fix up sparc32 properly (incremental).

Index: mm1-2.6.8-rc3/arch/sparc/kernel/sun4d_smp.c
===================================================================
--- mm1-2.6.8-rc3.orig/arch/sparc/kernel/sun4d_smp.c	2004-08-05 20:42:08.015287880 -0700
+++ mm1-2.6.8-rc3/arch/sparc/kernel/sun4d_smp.c	2004-08-05 21:29:42.301370440 -0700
@@ -201,7 +201,7 @@
 			int no;
 
 			/* Cook up an idler for this guy. */
-			p = fork_idle(p, cpu);
+			p = fork_idle(p, i);
 			cpucount++;
 			current_set[i] = p->thread_info;
 			for (no = 0; !cpu_find_by_instance(no, NULL, &mid)
Index: mm1-2.6.8-rc3/arch/sparc/kernel/sun4m_smp.c
===================================================================
--- mm1-2.6.8-rc3.orig/arch/sparc/kernel/sun4m_smp.c	2004-08-05 05:30:44.000000000 -0700
+++ mm1-2.6.8-rc3/arch/sparc/kernel/sun4m_smp.c	2004-08-05 21:29:33.360729624 -0700
@@ -173,18 +173,9 @@
 			int timeout;
 
 			/* Cook up an idler for this guy. */
-			kernel_thread(NULL, NULL, CLONE_IDLETASK);
-
+			p = fork_idle(i);
 			cpucount++;
-
-			p = prev_task(&init_task);
-
-			init_idle(p, i);
-
 			current_set[i] = p->thread_info;
-
-			unhash_process(p);
-
 			/* See trampoline.S for details... */
 			entry += ((i-1) * 3);
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:05    [from the cache]
©2003-2008