diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-03-17 08:48:18 -0400 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-03-17 08:48:18 -0400 |
| commit | 2eb060975df2aaca635801dcfb99eaa45ede98fe (patch) | |
| tree | 0e8c5a409227b6d56665d1a149ea90985ab54ea2 /drivers/acpi/processor_perflib.c | |
| parent | 75c44eddcb4989b85826143bc09fd3ad120abd4e (diff) | |
| parent | 700b8422fb9e6041907bda45a15f4e2ab0438a04 (diff) | |
Merge branch 'acpi-ost'
* acpi-ost:
ACPI: Drop acpi_evaluate_hotplug_ost() and ACPI_HOTPLUG_OST
ACPI: use device name LNXSYBUS.xx for ACPI \_SB and \_TZ objects
ACPI / processor: use acpi_evaluate_ost() to replace open-coded version
ACPI / PAD / xen: use acpi_evaluate_ost() to replace open-coded version
ACPI / PAD: use acpi_evaluate_ost() to replace open-coded version
ACPI: rename acpi_evaluate_hotplug_ost() to acpi_evaluate_ost()
Diffstat (limited to 'drivers/acpi/processor_perflib.c')
| -rw-r--r-- | drivers/acpi/processor_perflib.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/acpi/processor_perflib.c b/drivers/acpi/processor_perflib.c index ff90054f04fd..cfc8aba72f86 100644 --- a/drivers/acpi/processor_perflib.c +++ b/drivers/acpi/processor_perflib.c | |||
| @@ -156,17 +156,9 @@ static int acpi_processor_get_platform_limit(struct acpi_processor *pr) | |||
| 156 | */ | 156 | */ |
| 157 | static void acpi_processor_ppc_ost(acpi_handle handle, int status) | 157 | static void acpi_processor_ppc_ost(acpi_handle handle, int status) |
| 158 | { | 158 | { |
| 159 | union acpi_object params[2] = { | 159 | if (acpi_has_method(handle, "_OST")) |
| 160 | {.type = ACPI_TYPE_INTEGER,}, | 160 | acpi_evaluate_ost(handle, ACPI_PROCESSOR_NOTIFY_PERFORMANCE, |
| 161 | {.type = ACPI_TYPE_INTEGER,}, | 161 | status, NULL); |
| 162 | }; | ||
| 163 | struct acpi_object_list arg_list = {2, params}; | ||
| 164 | |||
| 165 | if (acpi_has_method(handle, "_OST")) { | ||
| 166 | params[0].integer.value = ACPI_PROCESSOR_NOTIFY_PERFORMANCE; | ||
| 167 | params[1].integer.value = status; | ||
| 168 | acpi_evaluate_object(handle, "_OST", &arg_list, NULL); | ||
| 169 | } | ||
| 170 | } | 162 | } |
| 171 | 163 | ||
| 172 | int acpi_processor_ppc_has_changed(struct acpi_processor *pr, int event_flag) | 164 | int acpi_processor_ppc_has_changed(struct acpi_processor *pr, int event_flag) |
