Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202521
b: refs/heads/master
c: 0d9715d
h: refs/heads/master
i:
  202519: b62cd6e
v: v3
  • Loading branch information
Daniel J Blueman authored and Dave Jones committed Aug 3, 2010
1 parent 963f606 commit da98fb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 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: 5d77b85458f656923b85291a4ff56ed44859ed52
refs/heads/master: 0d9715d64fe118dd0957a29e344972b8d3f960e7
18 changes: 6 additions & 12 deletions trunk/arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,22 +368,16 @@ static int __init pcc_cpufreq_do_osc(acpi_handle *handle)
return -ENODEV;

out_obj = output.pointer;
if (out_obj->type != ACPI_TYPE_BUFFER) {
ret = -ENODEV;
goto out_free;
}
if (out_obj->type != ACPI_TYPE_BUFFER)
return -ENODEV;

errors = *((u32 *)out_obj->buffer.pointer) & ~(1 << 0);
if (errors) {
ret = -ENODEV;
goto out_free;
}
if (errors)
return -ENODEV;

supported = *((u32 *)(out_obj->buffer.pointer + 4));
if (!(supported & 0x1)) {
ret = -ENODEV;
goto out_free;
}
if (!(supported & 0x1))
return -ENODEV;

out_free:
kfree(output.pointer);
Expand Down

0 comments on commit da98fb8

Please sign in to comment.