Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310930
b: refs/heads/master
c: 5e62625
h: refs/heads/master
v: v3
  • Loading branch information
Andre Przywara authored and Konrad Rzeszutek Wilk committed May 31, 2012
1 parent e2be688 commit 3fe7b7c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 58b7b53a36b0be8081fbfc91aeea24b83c20ca1b
refs/heads/master: 5e626254206a709c6e937f3dda69bf26c7344f6f
8 changes: 8 additions & 0 deletions trunk/arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ static void __init xen_banner(void)
xen_feature(XENFEAT_mmu_pt_update_preserve_ad) ? " (preserve-AD)" : "");
}

#define CPUID_THERM_POWER_LEAF 6
#define APERFMPERF_PRESENT 0

static __read_mostly unsigned int cpuid_leaf1_edx_mask = ~0;
static __read_mostly unsigned int cpuid_leaf1_ecx_mask = ~0;

Expand Down Expand Up @@ -241,6 +244,11 @@ static void xen_cpuid(unsigned int *ax, unsigned int *bx,
*dx = cpuid_leaf5_edx_val;
return;

case CPUID_THERM_POWER_LEAF:
/* Disabling APERFMPERF for kernel usage */
maskecx = ~(1 << APERFMPERF_PRESENT);
break;

case 0xb:
/* Suppress extended topology stuff */
maskebx = 0;
Expand Down

0 comments on commit 3fe7b7c

Please sign in to comment.