WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Revert gratuitous Linux changes and fix maxcpus mess pro

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Revert gratuitous Linux changes and fix maxcpus mess properly.
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Wed, 04 May 2005 09:41:40 +0000
Delivery-date: Thu, 05 May 2005 11:02:27 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1429, 2005/05/04 10:41:40+01:00, cl349@xxxxxxxxxxxxxxxxxxxx

        Revert gratuitous Linux changes and fix maxcpus mess properly.
        Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>



 mpparse.c |    2 +-
 setup.c   |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)


diff -Nru a/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/mpparse.c 
b/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/mpparse.c
--- a/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/mpparse.c    2005-05-05 
07:02:56 -04:00
+++ b/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/mpparse.c    2005-05-05 
07:02:56 -04:00
@@ -37,7 +37,7 @@
 
 /* Have we found an MP table */
 int smp_found_config;
-extern unsigned int maxcpus;
+unsigned int __initdata maxcpus = NR_CPUS;
 
 /*
  * Various Linux-internal data structures created from the
diff -Nru a/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/setup.c 
b/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/setup.c
--- a/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/setup.c      2005-05-05 
07:02:56 -04:00
+++ b/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/setup.c      2005-05-05 
07:02:56 -04:00
@@ -67,8 +67,6 @@
 
 int disable_pse __initdata = 0;
 
-unsigned int __initdata maxcpus = NR_CPUS;
-
 /*
  * Machine setup..
  */
@@ -781,12 +779,14 @@
                        noexec_setup(from + 7);
 
 
-#ifdef  CONFIG_X86_SMP
+#ifdef  CONFIG_X86_MPPARSE
                /*
                 * If the BIOS enumerates physical processors before logical,
                 * maxcpus=N at enumeration-time can be used to disable HT.
                 */
                else if (!memcmp(from, "maxcpus=", 8)) {
+                       extern unsigned int maxcpus;
+
                        maxcpus = simple_strtoul(from + 8, NULL, 0);
                }
 #endif

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Revert gratuitous Linux changes and fix maxcpus mess properly., BitKeeper Bot <=