Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361897
b: refs/heads/master
c: 05e99c8
h: refs/heads/master
i:
  361895: 33d044b
v: v3
  • Loading branch information
Konrad Rzeszutek Wilk authored and Rafael J. Wysocki committed Mar 25, 2013
1 parent 1cc4666 commit fbf36d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e6f3eb29be471c4b536a91daab76d4aeda72a261
refs/heads/master: 05e99c8cf9d4e53ef6e016815db40a89a6156529
1 change: 1 addition & 0 deletions trunk/arch/x86/include/uapi/asm/msr-index.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#define SNB_C1_AUTO_UNDEMOTE (1UL << 27)
#define SNB_C3_AUTO_UNDEMOTE (1UL << 28)

#define MSR_PLATFORM_INFO 0x000000ce
#define MSR_MTRRcap 0x000000fe
#define MSR_IA32_BBL_CR_CTL 0x00000119
#define MSR_IA32_BBL_CR_CTL3 0x0000011e
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/cpufreq/intel_pstate.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,22 +358,22 @@ static void intel_pstate_sysfs_expose_params(void)
static int intel_pstate_min_pstate(void)
{
u64 value;
rdmsrl(0xCE, value);
rdmsrl(MSR_PLATFORM_INFO, value);
return (value >> 40) & 0xFF;
}

static int intel_pstate_max_pstate(void)
{
u64 value;
rdmsrl(0xCE, value);
rdmsrl(MSR_PLATFORM_INFO, value);
return (value >> 8) & 0xFF;
}

static int intel_pstate_turbo_pstate(void)
{
u64 value;
int nont, ret;
rdmsrl(0x1AD, value);
rdmsrl(MSR_NHM_TURBO_RATIO_LIMIT, value);
nont = intel_pstate_max_pstate();
ret = ((value) & 255);
if (ret <= nont)
Expand Down

0 comments on commit fbf36d6

Please sign in to comment.