mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Li Shaohua <shaohua.li@intel.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Coywolf Qi Hunt <coywolf@lovecn.org>,
	coywolf@gmail.com, zwane@arm.linux.org.uk,
	lkml <linux-kernel@vger.kernel.org>,
	ak@muc.de, bunk@stusta.de
Subject: Re: 2.6.12-rc3-mm1
Date: Sun, 08 May 2005 11:53:09 +0800	[thread overview]
Message-ID: <1115524388.8980.2.camel@sli10-desk.sh.intel.com> (raw)
In-Reply-To: <20050430124611.54b5ab15.akpm@osdl.org>

On Sun, 2005-05-01 at 03:46, Andrew Morton wrote:
> Thanks, guys.  I seem to have it limping along on UP now, partly with the
> below.
> 
> Li, it's a bit awkward to be calling things by hand on SMP and with an
> initcall on UP.  Maybe something neater can be done there.
Andrew, how about below one?

Thanks,
Shaohua



---

 linux-2.6.11-root/arch/i386/kernel/cpu/common.c        |    3 +++
 linux-2.6.11-root/arch/i386/kernel/smpboot.c           |    5 -----
 linux-2.6.11-root/arch/i386/kernel/sysenter.c          |   10 ----------
 linux-2.6.11-root/arch/i386/mach-voyager/voyager_smp.c |    4 ----
 linux-2.6.11-root/include/asm-i386/processor.h         |    1 +
 linux-2.6.11-root/include/asm-i386/smp.h               |    2 --
 6 files changed, 4 insertions(+), 21 deletions(-)

diff -puN arch/i386/kernel/sysenter.c~sep_init_cleanup arch/i386/kernel/sysenter.c
--- linux-2.6.11/arch/i386/kernel/sysenter.c~sep_init_cleanup	2005-05-08 10:50:05.266387824 +0800
+++ linux-2.6.11-root/arch/i386/kernel/sysenter.c	2005-05-08 11:12:05.610664984 +0800
@@ -65,13 +65,3 @@ int __init sysenter_setup(void)
 
 	return 0;
 }
-
-#ifndef CONFIG_SMP
-static int __init sysenter_sep_setup(void)
-{
-	sysenter_setup();
-	enable_sep_cpu();
-	return 0;
-}
-module_init(sysenter_sep_setup);
-#endif
diff -puN arch/i386/kernel/cpu/common.c~sep_init_cleanup arch/i386/kernel/cpu/common.c
--- linux-2.6.11/arch/i386/kernel/cpu/common.c~sep_init_cleanup	2005-05-08 10:50:05.268387520 +0800
+++ linux-2.6.11-root/arch/i386/kernel/cpu/common.c	2005-05-08 10:50:05.275386456 +0800
@@ -428,6 +428,9 @@ void __devinit identify_cpu(struct cpuin
 #ifdef CONFIG_X86_MCE
 	machine_check_init(c);
 #endif
+	if (c == &boot_cpu_data)
+		sysenter_setup();
+	enable_sep_cpu();
 }
 
 #ifdef CONFIG_X86_HT
diff -puN arch/i386/kernel/smpboot.c~sep_init_cleanup arch/i386/kernel/smpboot.c
--- linux-2.6.11/arch/i386/kernel/smpboot.c~sep_init_cleanup	2005-05-08 10:50:05.269387368 +0800
+++ linux-2.6.11-root/arch/i386/kernel/smpboot.c	2005-05-08 10:50:05.275386456 +0800
@@ -495,8 +495,6 @@ static void __devinit start_secondary(vo
 	set_cpu_sibling_map(_smp_processor_id());
 	wmb();
 
-	/* Note: this must be done before __cpu_up finish */
-	enable_sep_cpu();
 	cpu_set(smp_processor_id(), cpu_online_map);
 
 	/* We can take interrupts now: we're officially "up". */
@@ -1079,9 +1077,6 @@ static void __init smp_boot_cpus(unsigne
 	cpus_clear(cpu_core_map[0]);
 	cpu_set(0, cpu_core_map[0]);
 
-	sysenter_setup();
-	enable_sep_cpu();
-
 	/*
 	 * If we couldn't find an SMP configuration at boot time,
 	 * get out of here now!
diff -puN arch/i386/mach-voyager/voyager_smp.c~sep_init_cleanup arch/i386/mach-voyager/voyager_smp.c
--- linux-2.6.11/arch/i386/mach-voyager/voyager_smp.c~sep_init_cleanup	2005-05-08 10:50:05.271387064 +0800
+++ linux-2.6.11-root/arch/i386/mach-voyager/voyager_smp.c	2005-05-08 10:50:05.276386304 +0800
@@ -499,7 +499,6 @@ start_secondary(void *unused)
 	while (!cpu_isset(cpuid, smp_commenced_mask))
 		rep_nop();
 	local_irq_enable();
-	enable_sep_cpu();
 
 	local_flush_tlb();
 
@@ -697,9 +696,6 @@ smp_boot_cpus(void)
 	printk("CPU%d: ", boot_cpu_id);
 	print_cpu_info(&cpu_data[boot_cpu_id]);
 
-	sysenter_setup();
-	enable_sep_cpu();
-
 	if(is_cpu_quad()) {
 		/* booting on a Quad CPU */
 		printk("VOYAGER SMP: Boot CPU is Quad\n");
diff -puN include/asm-i386/smp.h~sep_init_cleanup include/asm-i386/smp.h
--- linux-2.6.11/include/asm-i386/smp.h~sep_init_cleanup	2005-05-08 11:12:29.334058480 +0800
+++ linux-2.6.11-root/include/asm-i386/smp.h	2005-05-08 11:12:42.703026088 +0800
@@ -37,8 +37,6 @@ extern int smp_num_siblings;
 extern cpumask_t cpu_sibling_map[];
 extern cpumask_t cpu_core_map[];
 
-extern int sysenter_setup(void);
-
 extern void smp_flush_tlb(void);
 extern void smp_message_irq(int cpl, void *dev_id, struct pt_regs *regs);
 extern void smp_invalidate_rcv(void);		/* Process an NMI */
diff -puN include/asm-i386/processor.h~sep_init_cleanup include/asm-i386/processor.h
--- linux-2.6.11/include/asm-i386/processor.h~sep_init_cleanup	2005-05-08 11:12:51.875631640 +0800
+++ linux-2.6.11-root/include/asm-i386/processor.h	2005-05-08 11:13:22.290007952 +0800
@@ -694,5 +694,6 @@ extern void select_idle_routine(const st
 
 extern unsigned long boot_option_idle_override;
 extern void enable_sep_cpu(void);
+extern int sysenter_setup(void);
 
 #endif /* __ASM_I386_PROCESSOR_H */
_



  parent reply	other threads:[~2005-05-08  3:59 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-30  6:16 2.6.12-rc3-mm1 Andrew Morton
2005-04-30  9:40 ` 2.6.12-rc3-mm1 Brice Goglin
2005-04-30 10:30 ` 2.6.12-rc3-mm1 Brice Goglin
2005-04-30 10:38   ` 2.6.12-rc3-mm1 Andrew Morton
2005-04-30 11:10 ` 2.6.12-rc3-mm1 Alexander Nyberg
2005-04-30 11:26   ` 2.6.12-rc3-mm1 Andrew Morton
2005-04-30 11:52 ` [-mm patch] SIS900 must select MII Adrian Bunk
2005-05-01 16:43   ` Daniele Venzano
2005-05-15 22:24   ` Jeff Garzik
2005-04-30 12:27 ` 2.6.12-rc3-mm1 Ed Tomlinson
2005-04-30 22:08   ` 2.6.12-rc3-mm1 Valdis.Kletnieks
2005-04-30 22:36   ` 2.6.12-rc3-mm1 Zwane Mwaikambo
2005-04-30 22:51     ` 2.6.12-rc3-mm1 Jesper Juhl
2005-04-30 22:53     ` 2.6.12-rc3-mm1 Ed Tomlinson
2005-04-30 23:05       ` 2.6.12-rc3-mm1 Zwane Mwaikambo
2005-04-30 23:10         ` 2.6.12-rc3-mm1 Randy.Dunlap
2005-05-01 13:09           ` 2.6.12-rc3-mm1 Ed Tomlinson
2005-05-01 13:30             ` 2.6.12-rc3-mm1 Adrian Bunk
2005-05-02 15:28               ` 2.6.12-rc3-mm1 Valdis.Kletnieks
2005-05-02 15:49                 ` 2.6.12-rc3-mm1 Randy.Dunlap
2005-05-02 16:11                   ` 2.6.12-rc3-mm1 Valdis.Kletnieks
2005-05-02 22:20                     ` 2.6.12-rc3-mm1 Andrew Morton
2005-05-02 22:39                       ` 2.6.12-rc3-mm1 Olivier Galibert
2005-05-03  0:34                       ` 2.6.12-rc3-mm1 Randy.Dunlap
2005-05-02 22:41                 ` 2.6.12-rc3-mm1 Frank Sorenson
2005-05-03 16:02                   ` 2.6.12-rc3-mm1 Bill Davidsen
2005-05-01 13:19       ` 2.6.12-rc3-mm1 Adrian Bunk
2005-04-30 12:46 ` 2.6.12-rc3-mm1 doesn't boot Adrian Bunk
2005-04-30 12:57   ` Carlos Martin
2005-04-30 13:25 ` 2.6.12-rc3-mm1 Alexander Nyberg
2005-04-30 13:50   ` 2.6.12-rc3-mm1 Adrian Bunk
2005-04-30 14:07 ` 2.6.12-rc3-mm1 Richard Purdie
2005-04-30 15:04   ` 2.6.12-rc3-mm1 Russell King
2005-04-30 19:49   ` 2.6.12-rc3-mm1 Andrew Morton
2005-04-30 22:03     ` 2.6.12-rc3-mm1 Richard Purdie
2005-04-30 14:20 ` 2.6.12-rc3-mm1 Adrian Bunk
2005-04-30 16:43   ` 2.6.12-rc3-mm1 Zwane Mwaikambo
2005-04-30 17:05     ` 2.6.12-rc3-mm1 Coywolf Qi Hunt
2005-04-30 18:08       ` 2.6.12-rc3-mm1 Coywolf Qi Hunt
2005-04-30 18:56         ` 2.6.12-rc3-mm1 Adrian Bunk
2005-04-30 19:46         ` 2.6.12-rc3-mm1 Andrew Morton
2005-04-30 20:01           ` 2.6.12-rc3-mm1 Coywolf Qi Hunt
2005-05-08  3:53           ` Li Shaohua [this message]
2005-04-30 18:30   ` 2.6.12-rc3-mm1 Coywolf Qi Hunt
2005-04-30 18:58     ` 2.6.12-rc3-mm1 Adrian Bunk
2005-04-30 15:29 ` 2.6.12-rc3-mm1 Coywolf Qi Hunt
2005-04-30 15:39   ` 2.6.12-rc3-mm1 Zwane Mwaikambo
2005-04-30 15:44     ` 2.6.12-rc3-mm1 Brice Goglin
2005-04-30 16:02       ` 2.6.12-rc3-mm1 Zwane Mwaikambo
2005-04-30 15:48     ` 2.6.12-rc3-mm1 Carlos Martin
2005-04-30 15:48     ` 2.6.12-rc3-mm1 Coywolf Qi Hunt
2005-04-30 23:34 ` 2.6.12-rc3-mm1 (a-new-10gb-ethernet-driver-by-chelsio-communications.patch) Alexey Dobriyan
2005-05-01  8:49 2.6.12-rc3-mm1 Li, Shaohua
     [not found] <fa.gbejpad.1vj8f9r@ifi.uio.no>
2005-05-03  9:00 ` 2.6.12-rc3-mm1 Reuben Farrelly
2005-05-03  9:07   ` 2.6.12-rc3-mm1 Andrew Morton
2005-05-03  9:49     ` 2.6.12-rc3-mm1 Reuben Farrelly

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1115524388.8980.2.camel@sli10-desk.sh.intel.com \
    --to=shaohua.li@intel.com \
    --cc=ak@muc.de \
    --cc=akpm@osdl.org \
    --cc=bunk@stusta.de \
    --cc=coywolf@gmail.com \
    --cc=coywolf@lovecn.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zwane@arm.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®