]> xenbits.xensource.com Git - xen.git/commitdiff
x86: drop cpuinfo_x86.x86_power
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 11 Feb 2016 15:41:35 +0000 (16:41 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 11 Feb 2016 15:41:35 +0000 (16:41 +0100)
Nothing uses it.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/amd.c
xen/include/asm-x86/processor.h

index 1ac44e00ff3d80fb30470216a4d7af8a0eaf368f..c184f575ce6f6cdab3592557a7871bad9c767902 100644 (file)
@@ -475,8 +475,7 @@ static void init_amd(struct cpuinfo_x86 *c)
        }
 
        if (c->extended_cpuid_level >= 0x80000007) {
-               c->x86_power = cpuid_edx(0x80000007);
-               if (c->x86_power & (1<<8)) {
+               if (cpuid_edx(0x80000007) & (1<<8)) {
                        __set_bit(X86_FEATURE_CONSTANT_TSC, c->x86_capability);
                        __set_bit(X86_FEATURE_NONSTOP_TSC, c->x86_capability);
                        if (c->x86 != 0x11)
index 26ba14158eab7e7018f932b835ee0732933ecf6c..271340e2917380f90af9274246448f707c8b4bbe 100644 (file)
@@ -191,7 +191,6 @@ struct cpuinfo_x86 {
     char x86_model_id[64];
     int  x86_cache_size; /* in KB - valid for CPUS which support this call  */
     int  x86_cache_alignment;    /* In bytes */
-    int  x86_power;
     __u32 x86_max_cores; /* cpuid returned max cores value */
     __u32 booted_cores;  /* number of cores as seen by OS */
     __u32 x86_num_siblings; /* cpuid logical cpus per chip value */