[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.4-testing] x86 cpu: Fix bug: unify cpu_dev attr as __cpuinitdata



# HG changeset patch
# User Keith Coleman <keith.coleman@xxxxxxxxxxxxx>
# Date 1325657222 18000
# Node ID 7b68af1f52e749084bfd03eac97191d8ae8a7a90
# Parent  2300742519c3b3f6b145b94e3cbe803902c311cc
x86 cpu: Fix bug: unify cpu_dev attr as __cpuinitdata

Currently different x86 cpu define different attr for cpu_dev.
Some cpu define as __initdata, this would be risk under cpu hotplug.
This patch fix the bug, unify them as __cpuinitdata, as what AMD cpu
define now.

Signed-off-by: Liu, Jinsong <jinsong.liu@xxxxxxxxx>
Signed-off-by: Shan, Haitao <haitao.shan@xxxxxxxxx>
xen-unstable changeset: 23659:7fe0331986c5
xen-unstable date: Fri Jul 08 08:30:41 2011 +0100
---


diff -r 2300742519c3 -r 7b68af1f52e7 xen/arch/x86/cpu/centaur.c
--- a/xen/arch/x86/cpu/centaur.c        Wed Jan 04 00:54:37 2012 -0500
+++ b/xen/arch/x86/cpu/centaur.c        Wed Jan 04 01:07:02 2012 -0500
@@ -86,7 +86,7 @@
        return size;
 }
 
-static struct cpu_dev centaur_cpu_dev __initdata = {
+static struct cpu_dev centaur_cpu_dev __cpuinitdata = {
        .c_vendor       = "Centaur",
        .c_ident        = { "CentaurHauls" },
        .c_init         = init_centaur,
diff -r 2300742519c3 -r 7b68af1f52e7 xen/arch/x86/cpu/cyrix.c
--- a/xen/arch/x86/cpu/cyrix.c  Wed Jan 04 00:54:37 2012 -0500
+++ b/xen/arch/x86/cpu/cyrix.c  Wed Jan 04 01:07:02 2012 -0500
@@ -368,7 +368,7 @@
        generic_identify(c);
 }
 
-static struct cpu_dev cyrix_cpu_dev __initdata = {
+static struct cpu_dev cyrix_cpu_dev __cpuinitdata = {
        .c_vendor       = "Cyrix",
        .c_ident        = { "CyrixInstead" },
        .c_init         = init_cyrix,
@@ -383,7 +383,7 @@
 
 //early_arch_initcall(cyrix_init_cpu);
 
-static struct cpu_dev nsc_cpu_dev __initdata = {
+static struct cpu_dev nsc_cpu_dev __cpuinitdata = {
        .c_vendor       = "NSC",
        .c_ident        = { "Geode by NSC" },
        .c_init         = init_cyrix,
diff -r 2300742519c3 -r 7b68af1f52e7 xen/arch/x86/cpu/intel.c
--- a/xen/arch/x86/cpu/intel.c  Wed Jan 04 00:54:37 2012 -0500
+++ b/xen/arch/x86/cpu/intel.c  Wed Jan 04 01:07:02 2012 -0500
@@ -242,7 +242,7 @@
        return size;
 }
 
-static struct cpu_dev intel_cpu_dev __devinitdata = {
+static struct cpu_dev intel_cpu_dev __cpuinitdata = {
        .c_vendor       = "Intel",
        .c_ident        = { "GenuineIntel" },
        .c_models = {
diff -r 2300742519c3 -r 7b68af1f52e7 xen/arch/x86/cpu/transmeta.c
--- a/xen/arch/x86/cpu/transmeta.c      Wed Jan 04 00:54:37 2012 -0500
+++ b/xen/arch/x86/cpu/transmeta.c      Wed Jan 04 01:07:02 2012 -0500
@@ -92,7 +92,7 @@
        }
 }
 
-static struct cpu_dev transmeta_cpu_dev __initdata = {
+static struct cpu_dev transmeta_cpu_dev __cpuinitdata = {
        .c_vendor       = "Transmeta",
        .c_ident        = { "GenuineTMx86", "TransmetaCPU" },
        .c_init         = init_transmeta,

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.