Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5130
b: refs/heads/master
c: 7657e20
h: refs/heads/master
v: v3
  • Loading branch information
Brian Gerst authored and Linus Torvalds committed Jul 27, 2005
1 parent d154d2b commit 1c36f5b
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: bbaf364103cee15c895e2086723d0ad9ef47ae99
refs/heads/master: 7657e20e46e26b198b24e2aefc696410bbe889c9
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 1c36f5b

Please sign in to comment.