Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5454
b: refs/heads/master
c: 7153d96
h: refs/heads/master
v: v3
  • Loading branch information
Dave Jones committed Jul 28, 2005
1 parent 8b08639 commit 84d5cb5
Show file tree
Hide file tree
Showing 2 changed files with 3 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: cc993cab0239cb07af329d2e18faac7888821075
refs/heads/master: 7153d9612fe5cefc29f9f17d7a6b9f0dcd07b20e
5 changes: 2 additions & 3 deletions trunk/arch/i386/kernel/cpu/cpufreq/powernow-k8.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,13 @@ static int query_current_values_with_pending_wait(struct powernow_k8_data *data)
u32 lo, hi;
u32 i = 0;

lo = MSR_S_LO_CHANGE_PENDING;
while (lo & MSR_S_LO_CHANGE_PENDING) {
do {
if (i++ > 0x1000000) {
printk(KERN_ERR PFX "detected change pending stuck\n");
return 1;
}
rdmsr(MSR_FIDVID_STATUS, lo, hi);
}
} while (lo & MSR_S_LO_CHANGE_PENDING);

data->currvid = hi & MSR_S_HI_CURRENT_VID;
data->currfid = lo & MSR_S_LO_CURRENT_FID;
Expand Down

0 comments on commit 84d5cb5

Please sign in to comment.