* Andrew Morton <akpm@linux-foundation.org> wrote:that came in via the UV-APIC patchset but the warning is entirely harmless. At that point we've got a single CPU running only so preemption of that code to another CPU is not possible. native_smp_prepare_cpus() should probably just disable preemption, that way we could remove all those ugly preempt disable-enable calls from the called functions - per the patch below. (not boot tested yet - might provoke atomic-scheduling warnings if i forgot about some schedule point in this rather large codepath) Ingo -------------------> Subject: x86: disable preemption in native_smp_prepare_cpus From: Ingo Molnar <mingo@elte.hu> Date: Fri Apr 18 11:07:10 CEST 2008 Signed-off-by: Ingo Molnar <mingo@elte.hu> --- arch/x86/kernel/smpboot.c | 2 ++ 1 file changed, 2 insertions(+) Index: linux-x86.q/arch/x86/kernel/smpboot.c =================================================================== --- linux-x86.q.orig/arch/x86/kernel/smpboot.c +++ linux-x86.q/arch/x86/kernel/smpboot.c @@ -1181,6 +1181,7 @@ static void __init smp_cpu_index_default */ void __init native_smp_prepare_cpus(unsigned int max_cpus) { + preempt_disable(); nmi_watchdog_default(); smp_cpu_index_default(); current_cpu_data = boot_cpu_data; @@ -1237,6 +1238,7 @@ void __init native_smp_prepare_cpus(unsi printk(KERN_INFO "CPU%d: ", 0); print_cpu_info(&cpu_data(0)); setup_boot_clock(); + preempt_enable(); } /* * Early setup to make printk work. --
| Jesse Barnes | Re: 2.6.25-rc2 System no longer powers off after suspend-to-disk. Screen becomes g... |
| Mark Lord | Re: [Bug #10391] 2.6.25-rc7/8: Another resume regression |
| Jeremy Fitzhardinge | [PATCH 02 of 36] x86: add memory clobber to save/loadsegment |
| David Miller | Slow DOWN, please!!! |
git: | |
| Sam Vilain | [PATCH] git-mergetool: add support for ediff |
| Linus Torvalds | Re: Errors GITtifying GCC and Binutils |
| Bill Lear | Meaning of "fatal: protocol error: bad line length character"? |
| Johannes Schindelin | Re: A tour of git: the basics (and notes on some unfriendly messages) |
| Stephen Pierce | SLS |
| Rob Coleman | S3 |
| Tall Cool One | A few questions about Linux, in general. |
| Tony Gale | Re: UserAdd won't make home directory? |
| Richard Stallman | Real men don't attack straw men |
| Todd Pytel | IDE or SCSI virtual disks for VMWare image? |
| Amarendra Godbole | Anyone from this list at BlackHat or DefCon? And a query... |
| Karthik Kumar | Re: Ethernet jumbo frames? |
| magical mounts | 13 hours ago | Linux kernel |
| Problem in scim in Fedora 9 | 14 hours ago | Linux general |
| The new Western Digital power saving drives | 14 hours ago | Hardware |
| Battery Maximizer Software | 1 day ago | Linux kernel |
| windows folder creation surprise | 1 day ago | Windows |
| Firewall | 2 days ago | OpenBSD |
| IP layer send packet | 2 days ago | Linux kernel |
| dtrace for linux available | 3 days ago | Linux kernel |
| Unable to mount ramdisk image using UBoot while upgrading to 2.6.15 kernel for a MPC8540 based target | 3 days ago | Linux kernel |
| RealTek RTL8169 - can't connect | 3 days ago | NetBSD |
