Commit 92c7e355 authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[CPUFREQ] printk cleanup in powernow-k8's check_pst_table()

parent 5861b2b0
...@@ -480,7 +480,7 @@ static int check_supported_cpu(unsigned int cpu) ...@@ -480,7 +480,7 @@ static int check_supported_cpu(unsigned int cpu)
static int check_pst_table(struct powernow_k8_data *data, struct pst_s *pst, u8 maxvid) static int check_pst_table(struct powernow_k8_data *data, struct pst_s *pst, u8 maxvid)
{ {
unsigned int j; unsigned int j;
u8 lastfid = 0xFF; u8 lastfid = 0xff;
for (j = 0; j < data->numps; j++) { for (j = 0; j < data->numps; j++) {
if (pst[j].vid > LEAST_VID) { if (pst[j].vid > LEAST_VID) {
...@@ -488,15 +488,11 @@ static int check_pst_table(struct powernow_k8_data *data, struct pst_s *pst, u8 ...@@ -488,15 +488,11 @@ static int check_pst_table(struct powernow_k8_data *data, struct pst_s *pst, u8
return -EINVAL; return -EINVAL;
} }
if (pst[j].vid < data->rvo) { /* vid + rvo >= 0 */ if (pst[j].vid < data->rvo) { /* vid + rvo >= 0 */
printk(KERN_ERR PFX printk(KERN_ERR BFX "0 vid exceeded with pstate %d\n", j);
"BIOS error - 0 vid exceeded with pstate %d\n",
j);
return -ENODEV; return -ENODEV;
} }
if (pst[j].vid < maxvid + data->rvo) { /* vid + rvo >= maxvid */ if (pst[j].vid < maxvid + data->rvo) { /* vid + rvo >= maxvid */
printk(KERN_ERR PFX printk(KERN_ERR BFX "maxvid exceeded with pstate %d\n", j);
"BIOS error - maxvid exceeded with pstate %d\n",
j);
return -ENODEV; return -ENODEV;
} }
if ((pst[j].fid > MAX_FID) if ((pst[j].fid > MAX_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