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] [xen-unstable] x86 cpu: Fix bug: unify cpu_dev attr as _

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86 cpu: Fix bug: unify cpu_dev attr as __cpuinitdata
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Sun, 10 Jul 2011 08:44:09 +0100
Delivery-date: Sun, 10 Jul 2011 00:44:34 -0700
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Liu, Jinsong <jinsong.liu@xxxxxxxxx>
# Date 1310110241 -3600
# Node ID 7fe0331986c533117e67772eab0506a6672fe2fa
# Parent  21ff10d9a61779b4cee4b3c454ddb004a20f44dd
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>
               Shan, Haitao <haitao.shan@xxxxxxxxx>
---


diff -r 21ff10d9a617 -r 7fe0331986c5 xen/arch/x86/cpu/centaur.c
--- a/xen/arch/x86/cpu/centaur.c        Thu Jul 07 12:35:05 2011 +0100
+++ b/xen/arch/x86/cpu/centaur.c        Fri Jul 08 08:30:41 2011 +0100
@@ -85,7 +85,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 21ff10d9a617 -r 7fe0331986c5 xen/arch/x86/cpu/cyrix.c
--- a/xen/arch/x86/cpu/cyrix.c  Thu Jul 07 12:35:05 2011 +0100
+++ b/xen/arch/x86/cpu/cyrix.c  Fri Jul 08 08:30:41 2011 +0100
@@ -284,7 +284,7 @@
        return (unsigned char) (test >> 8) == 0x02;
 }
 
-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,
@@ -299,7 +299,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 21ff10d9a617 -r 7fe0331986c5 xen/arch/x86/cpu/intel.c
--- a/xen/arch/x86/cpu/intel.c  Thu Jul 07 12:35:05 2011 +0100
+++ b/xen/arch/x86/cpu/intel.c  Fri Jul 08 08:30:41 2011 +0100
@@ -276,7 +276,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 21ff10d9a617 -r 7fe0331986c5 xen/arch/x86/cpu/transmeta.c
--- a/xen/arch/x86/cpu/transmeta.c      Thu Jul 07 12:35:05 2011 +0100
+++ b/xen/arch/x86/cpu/transmeta.c      Fri Jul 08 08:30:41 2011 +0100
@@ -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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] x86 cpu: Fix bug: unify cpu_dev attr as __cpuinitdata, Xen patchbot-unstable <=