Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI / processor: use acpi_evaluate_ost() to replace open-coded version

Use public function acpi_evaluate_ost() to replace open-coded
version of evaluating ACPI _OST method.

Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Jiang Liu and committed by
Rafael J. Wysocki
4a6172a4 772c5399

+3 -11
+3 -11
drivers/acpi/processor_perflib.c
··· 156 156 */ 157 157 static void acpi_processor_ppc_ost(acpi_handle handle, int status) 158 158 { 159 - union acpi_object params[2] = { 160 - {.type = ACPI_TYPE_INTEGER,}, 161 - {.type = ACPI_TYPE_INTEGER,}, 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 - } 159 + if (acpi_has_method(handle, "_OST")) 160 + acpi_evaluate_ost(handle, ACPI_PROCESSOR_NOTIFY_PERFORMANCE, 161 + status, NULL); 170 162 } 171 163 172 164 int acpi_processor_ppc_has_changed(struct acpi_processor *pr, int event_flag)