diff options
Diffstat (limited to 'arch/i386/kernel/cpu')
-rw-r--r-- | arch/i386/kernel/cpu/cpufreq/powernow-k7.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/powernow-k7.c b/arch/i386/kernel/cpu/cpufreq/powernow-k7.c index 2bf4237cb94e..5d2b601425b8 100644 --- a/arch/i386/kernel/cpu/cpufreq/powernow-k7.c +++ b/arch/i386/kernel/cpu/cpufreq/powernow-k7.c | |||
@@ -452,23 +452,23 @@ static int powernow_decode_bios (int maxfid, int startvid) | |||
452 | 452 | ||
453 | pst = (struct pst_s *) p; | 453 | pst = (struct pst_s *) p; |
454 | 454 | ||
455 | for (i = 0 ; i <psb->numpst; i++) { | 455 | for (j=0; j<psb->numpst; j++) { |
456 | pst = (struct pst_s *) p; | 456 | pst = (struct pst_s *) p; |
457 | number_scales = pst->numpstates; | 457 | number_scales = pst->numpstates; |
458 | 458 | ||
459 | if ((etuple == pst->cpuid) && check_fsb(pst->fsbspeed) && | 459 | if ((etuple == pst->cpuid) && check_fsb(pst->fsbspeed) && |
460 | (maxfid==pst->maxfid) && (startvid==pst->startvid)) | 460 | (maxfid==pst->maxfid) && (startvid==pst->startvid)) |
461 | { | 461 | { |
462 | dprintk ("PST:%d (@%p)\n", i, pst); | 462 | dprintk ("PST:%d (@%p)\n", j, pst); |
463 | dprintk (" cpuid: 0x%x fsb: %d maxFID: 0x%x startvid: 0x%x\n", | 463 | dprintk (" cpuid: 0x%x fsb: %d maxFID: 0x%x startvid: 0x%x\n", |
464 | pst->cpuid, pst->fsbspeed, pst->maxfid, pst->startvid); | 464 | pst->cpuid, pst->fsbspeed, pst->maxfid, pst->startvid); |
465 | 465 | ||
466 | ret = get_ranges ((char *) pst + sizeof (struct pst_s)); | 466 | ret = get_ranges ((char *) pst + sizeof (struct pst_s)); |
467 | return ret; | 467 | return ret; |
468 | |||
469 | } else { | 468 | } else { |
469 | unsigned int k; | ||
470 | p = (char *) pst + sizeof (struct pst_s); | 470 | p = (char *) pst + sizeof (struct pst_s); |
471 | for (j=0 ; j < number_scales; j++) | 471 | for (k=0; k<number_scales; k++) |
472 | p+=2; | 472 | p+=2; |
473 | } | 473 | } |
474 | } | 474 | } |