Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117271
b: refs/heads/master
c: 910dfae
h: refs/heads/master
i:
  117269: 0619ba5
  117267: e687ae0
  117263: 9d25993
v: v3
  • Loading branch information
Thomas Renninger authored and Len Brown committed Sep 22, 2008
1 parent fb5b5b3 commit dd876f2
Show file tree
Hide file tree
Showing 2 changed files with 16 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: a0ad05c75aa362c91f4d9cd91ff375a739574dd8
refs/heads/master: 910dfae298f7b3dae0e9a52736182a3b0559ca35
18 changes: 15 additions & 3 deletions trunk/drivers/acpi/processor_perflib.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@

#include <asm/uaccess.h>
#endif
#include <asm/cpufeature.h>

#include <acpi/acpi_bus.h>
#include <acpi/processor.h>
Expand Down Expand Up @@ -334,7 +335,6 @@ static int acpi_processor_get_performance_info(struct acpi_processor *pr)
acpi_status status = AE_OK;
acpi_handle handle = NULL;


if (!pr || !pr->performance || !pr->handle)
return -EINVAL;

Expand All @@ -347,13 +347,25 @@ static int acpi_processor_get_performance_info(struct acpi_processor *pr)

result = acpi_processor_get_performance_control(pr);
if (result)
return result;
goto update_bios;

result = acpi_processor_get_performance_states(pr);
if (result)
return result;
goto update_bios;

return 0;

/*
* Having _PPC but missing frequencies (_PSS, _PCT) is a very good hint that
* the BIOS is older than the CPU and does not know its frequencies
*/
update_bios:
if (ACPI_SUCCESS(acpi_get_handle(pr->handle, "_PPC", &handle))){
if(boot_cpu_has(X86_FEATURE_EST))
printk(KERN_WARNING FW_BUG "BIOS needs update for CPU "
"frequency support\n");
}
return result;
}

int acpi_processor_notify_smm(struct module *calling_module)
Expand Down

0 comments on commit dd876f2

Please sign in to comment.