Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349083
b: refs/heads/master
c: 9855d8c
h: refs/heads/master
i:
  349081: 59d911a
  349079: cb9b777
v: v3
  • Loading branch information
Stefan Bader authored and Rafael J. Wysocki committed Jan 22, 2013
1 parent e413b0f commit 904d554
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 8fa938acb318378463987b04be083dc2467e0480
refs/heads/master: 9855d8ce41a7801548a05d844db2f46c3e810166
7 changes: 7 additions & 0 deletions trunk/drivers/acpi/processor_perflib.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,13 @@ static void amd_fixup_frequency(struct acpi_processor_px *px, int i)
if ((boot_cpu_data.x86 == 0x10 && boot_cpu_data.x86_model < 10)
|| boot_cpu_data.x86 == 0x11) {
rdmsr(MSR_AMD_PSTATE_DEF_BASE + index, lo, hi);
/*
* MSR C001_0064+:
* Bit 63: PstateEn. Read-write. If set, the P-state is valid.
*/
if (!(hi & BIT(31)))
return;

fid = lo & 0x3f;
did = (lo >> 6) & 7;
if (boot_cpu_data.x86 == 0x10)
Expand Down

0 comments on commit 904d554

Please sign in to comment.