Commit 7153d961 authored by Dave Jones's avatar Dave Jones

powernow-k8.c: In function `query_current_values_with_pending_wait':

powernow-k8.c:110: warning: `hi' may be used uninitialized in this function
Signed-off-by: default avatarBrian Gerst <bgerst@didntduck.org>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
parent cc993cab
...@@ -110,14 +110,13 @@ static int query_current_values_with_pending_wait(struct powernow_k8_data *data) ...@@ -110,14 +110,13 @@ static int query_current_values_with_pending_wait(struct powernow_k8_data *data)
u32 lo, hi; u32 lo, hi;
u32 i = 0; u32 i = 0;
lo = MSR_S_LO_CHANGE_PENDING; do {
while (lo & MSR_S_LO_CHANGE_PENDING) {
if (i++ > 0x1000000) { if (i++ > 0x1000000) {
printk(KERN_ERR PFX "detected change pending stuck\n"); printk(KERN_ERR PFX "detected change pending stuck\n");
return 1; return 1;
} }
rdmsr(MSR_FIDVID_STATUS, lo, hi); rdmsr(MSR_FIDVID_STATUS, lo, hi);
} } while (lo & MSR_S_LO_CHANGE_PENDING);
data->currvid = hi & MSR_S_HI_CURRENT_VID; data->currvid = hi & MSR_S_HI_CURRENT_VID;
data->currfid = lo & MSR_S_LO_CURRENT_FID; data->currfid = lo & MSR_S_LO_CURRENT_FID;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment