From: "Jan Beulich" Subject: [PATCH] a little bit of SMP boot code cleanup Date: Fri, 29 Apr 2011 11:22:47 +0100 Message-ID: <4DBAAD97020000780003EDEC@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part69459367.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part69459367.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Signed-off-by: Jan Beulich --- a/xen/arch/ia64/linux-xen/smpboot.c +++ b/xen/arch/ia64/linux-xen/smpboot.c @@ -770,7 +770,7 @@ void __cpu_die(unsigned int cpu) #endif /* CONFIG_HOTPLUG_CPU */ =20 void -smp_cpus_done (unsigned int dummy) +smp_cpus_done(void) { int cpu; unsigned long bogosum =3D 0; --- a/xen/arch/ia64/xen/xensetup.c +++ b/xen/arch/ia64/xen/xensetup.c @@ -615,7 +615,7 @@ printk("num_online_cpus=3D%d, max_cpus=3D%d\ local_irq_disable(); =20 printk("Brought up %ld CPUs\n", (long)num_online_cpus()); - smp_cpus_done(max_cpus); + smp_cpus_done(); #endif =20 iommu_setup(); /* setup iommu if available */ --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -1226,9 +1226,8 @@ void __init __start_xen(unsigned long mb =20 /* * Initialise higher-level timer functions. We do this fairly late - * (post-SMP) because the time bases and scale factors need to be = updated=20 - * regularly, and SMP initialisation can cause a long delay with=20 - * interrupts not yet enabled. + * (after interrupts got enabled) because the time bases and scale + * factors need to be updated regularly. */ init_xen_time(); =20 @@ -1254,7 +1253,7 @@ void __init __start_xen(unsigned long mb } =20 printk("Brought up %ld CPUs\n", (long)num_online_cpus()); - smp_cpus_done(max_cpus); + smp_cpus_done(); =20 do_initcalls(); =20 --- a/xen/arch/x86/smpboot.c +++ b/xen/arch/x86/smpboot.c @@ -966,7 +966,7 @@ int __cpu_up(unsigned int cpu) } =20 =20 -void __init smp_cpus_done(unsigned int max_cpus) +void __init smp_cpus_done(void) { /* * Don't taint if we are running SMP kernel on a single non-MP --- a/xen/arch/x86/time.c +++ b/xen/arch/x86/time.c @@ -1445,7 +1445,7 @@ static void __init tsc_check_writability disable_tsc_sync =3D 1; } =20 -/* Late init function (after all CPUs are booted). */ +/* Late init function (after interrupts are enabled). */ int __init init_xen_time(void) { if ( boot_cpu_has(X86_FEATURE_TSC_RELIABLE) ) --- a/xen/include/xen/smp.h +++ b/xen/include/xen/smp.h @@ -23,7 +23,7 @@ extern void smp_prepare_cpus(unsigned in /* * Final polishing of CPUs */ -extern void smp_cpus_done(unsigned int max_cpus); +extern void smp_cpus_done(void); =20 /* * Call a function on all other processors --=__Part69459367.0__= Content-Type: text/plain; name="smpboot-cleanup.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="smpboot-cleanup.patch" Signed-off-by: Jan Beulich =0A=0A--- a/xen/arch/ia64/l= inux-xen/smpboot.c=0A+++ b/xen/arch/ia64/linux-xen/smpboot.c=0A@@ -770,7 = +770,7 @@ void __cpu_die(unsigned int cpu)=0A #endif /* CONFIG_HOTPLUG_CPU = */=0A =0A void=0A-smp_cpus_done (unsigned int dummy)=0A+smp_cpus_done(void)= =0A {=0A int cpu;=0A unsigned long bogosum =3D 0;=0A--- = a/xen/arch/ia64/xen/xensetup.c=0A+++ b/xen/arch/ia64/xen/xensetup.c=0A@@ = -615,7 +615,7 @@ printk("num_online_cpus=3D%d, max_cpus=3D%d\=0A = local_irq_disable();=0A =0A printk("Brought up %ld CPUs\n", (long)num_o= nline_cpus());=0A- smp_cpus_done(max_cpus);=0A+ smp_cpus_done();=0A = #endif=0A =0A iommu_setup(); /* setup iommu if available */=0A--- = a/xen/arch/x86/setup.c=0A+++ b/xen/arch/x86/setup.c=0A@@ -1226,9 +1226,8 = @@ void __init __start_xen(unsigned long mb=0A =0A /*=0A * = Initialise higher-level timer functions. We do this fairly late=0A- * = (post-SMP) because the time bases and scale factors need to be updated = =0A- * regularly, and SMP initialisation can cause a long delay with = =0A- * interrupts not yet enabled.=0A+ * (after interrupts got = enabled) because the time bases and scale=0A+ * factors need to be = updated regularly.=0A */=0A init_xen_time();=0A =0A@@ -1254,7 = +1253,7 @@ void __init __start_xen(unsigned long mb=0A }=0A =0A = printk("Brought up %ld CPUs\n", (long)num_online_cpus());=0A- smp_cpus_d= one(max_cpus);=0A+ smp_cpus_done();=0A =0A do_initcalls();=0A = =0A--- a/xen/arch/x86/smpboot.c=0A+++ b/xen/arch/x86/smpboot.c=0A@@ -966,7 = +966,7 @@ int __cpu_up(unsigned int cpu)=0A }=0A =0A =0A-void __init = smp_cpus_done(unsigned int max_cpus)=0A+void __init smp_cpus_done(void)=0A = {=0A /*=0A * Don't taint if we are running SMP kernel on a single = non-MP=0A--- a/xen/arch/x86/time.c=0A+++ b/xen/arch/x86/time.c=0A@@ = -1445,7 +1445,7 @@ static void __init tsc_check_writability=0A = disable_tsc_sync =3D 1;=0A }=0A =0A-/* Late init function (after all CPUs = are booted). */=0A+/* Late init function (after interrupts are enabled). = */=0A int __init init_xen_time(void)=0A {=0A if ( boot_cpu_has(X86_FEAT= URE_TSC_RELIABLE) )=0A--- a/xen/include/xen/smp.h=0A+++ b/xen/include/xen/s= mp.h=0A@@ -23,7 +23,7 @@ extern void smp_prepare_cpus(unsigned in=0A /*=0A = * Final polishing of CPUs=0A */=0A-extern void smp_cpus_done(unsigned = int max_cpus);=0A+extern void smp_cpus_done(void);=0A =0A /*=0A * Call a = function on all other processors=0A --=__Part69459367.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__Part69459367.0__=--