All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix UP links - current bk tree
@ 2002-08-01 12:07 Ed Tomlinson
  0 siblings, 0 replies; only message in thread
From: Ed Tomlinson @ 2002-08-01 12:07 UTC (permalink / raw)
  To: linux-kernel; +Cc: Linus Torvalds

Hi,

UP links are failing with the current bk tree.  migration_init is only
defined in sched.c when SMP is set so we should not try to call it
from main.c.

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.483   -> 1.484  
#	         init/main.c	1.59    -> 1.60   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/08/01	ed@oscar.et.ca	1.484
# Fix so UP links do not ask for migration_init
# --------------------------------------------
#
diff -Nru a/init/main.c b/init/main.c
--- a/init/main.c	Thu Aug  1 08:02:01 2002
+++ b/init/main.c	Thu Aug  1 08:02:01 2002
@@ -526,10 +526,12 @@
 
 static void do_pre_smp_initcalls(void)
 {
-	extern int migration_init(void);
 	extern int spawn_ksoftirqd(void);
+#ifdef CONFIG_SMP
+	extern int migration_init(void);
 
 	migration_init();
+#endif
 	spawn_ksoftirqd();
 }
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-08-01 12:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-01 12:07 [PATCH] fix UP links - current bk tree Ed Tomlinson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.