Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > fc11cd6e1c513a17304da94a5390f3cd > files > 3915

kernel-2.6.18-194.11.1.el5.src.rpm

From: Prarit Bhargava <prarit@redhat.com>
Date: Tue, 15 Jul 2008 19:57:55 -0400
Subject: [x86] don't call MP_processor_info for disabled cpu
Message-id: 20080715235717.12212.50595.sendpatchset@prarit.bos.redhat.com
O-Subject: [RHEL5 PATCH]: don't call MP_processor_info for disabled cpu (32 bit)
Bugzilla: 455425
RH-Acked-by: Brian Maly <bmaly@redhat.com>
RH-Acked-by: Rik van Riel <riel@redhat.com>

Backport of 987dd2d4d465e80e00d6a0b16787a78aa75dd66a

x86: don't call MP_processor_info for disabled cpu

    Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>

Successfully tested by me.

Resolves BZ 455425

diff --git a/arch/i386/kernel/mpparse.c b/arch/i386/kernel/mpparse.c
index 8aca0f6..40f4daf 100644
--- a/arch/i386/kernel/mpparse.c
+++ b/arch/i386/kernel/mpparse.c
@@ -842,7 +842,10 @@ void __cpuinit mp_register_lapic (
 {
 	struct mpc_config_processor processor;
 	int			boot_cpu = 0;
-	
+
+	if (!enabled)
+		return;
+
 	if (MAX_APICS - id <= 0) {
 		printk(KERN_WARNING "Processor #%d invalid (max %d)\n",
 			id, MAX_APICS);