aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2011-05-20 13:50:05 +0100
committerJan Beulich <jbeulich@novell.com>2011-05-20 13:50:05 +0100
commit8b9f9cabab8adc8fd3a3a58d525a0270ccac801d (patch)
tree54d3061e85b0b7b55a4f3ac534ac61b3644fed24
parentee58481b3e2d18d7b9256b8d72c85c568612c862 (diff)
downloadxen-8b9f9cabab8adc8fd3a3a58d525a0270ccac801d.tar.gz
xen-8b9f9cabab8adc8fd3a3a58d525a0270ccac801d.tar.bz2
xen-8b9f9cabab8adc8fd3a3a58d525a0270ccac801d.zip
x86/AMD: don't set ARAT feature flag on family F CPUs
Following Linux commit 14fb57dccb6e1defe9f89a66f548fcb24c374c1d from Borislav Petkov. Signed-off-by: Jan Beulich <jbeulich@novell.com> xen-unstable changeset: 23356:c8f00ee51e15 xen-unstable date: Fri May 20 09:11:54 2011 +0100
-rw-r--r--xen/arch/x86/cpu/amd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/cpu/amd.c b/xen/arch/x86/cpu/amd.c
index 9a840bc7d6..368a1edad8 100644
--- a/xen/arch/x86/cpu/amd.c
+++ b/xen/arch/x86/cpu/amd.c
@@ -609,7 +609,7 @@ static void __devinit init_amd(struct cpuinfo_x86 *c)
#endif
/* As a rule processors have APIC timer running in deep C states */
- if (c->x86 >= 0xf && !cpu_has_amd_erratum(c, AMD_ERRATUM_400))
+ if (c->x86 > 0xf && !cpu_has_amd_erratum(c, AMD_ERRATUM_400))
set_bit(X86_FEATURE_ARAT, c->x86_capability);
/* Prevent TSC drift in non single-processor, single-core platforms. */