linux: small ACPI processor external control code adjustments
PATCH 1/1 linux: small ACPI processor external control code adjustments
- don't send a change notification to Xen before having sent an init one
- fix a bogus preprocessor directive
Signed-off-by Jan Beulich <[email protected]>
arch/i386/kernel/acpi/processor_extcntl_xen.c +2 -0
@@ -117,6 +117,8 @@ static int xen_px_notifier(struct acpi_p perf = &op.u.set_pminfo.u.perf; px = pr->performance; +if (!px) +return -EINVAL ;switch (action) {case PROCESSOR_PM_CHANGE :
drivers/acpi/processor_perflib.c +1 -1
@@ -141,7 +141,7 @@ int acpi_processor_ppc_has_changed(struc else#ifdef CONFIG_CPU_FREQ return cpufreq_update_policy (pr->id); -#elif CONFIG_PROCESSOR_EXTERNAL_CONTROL +#elif defined(CONFIG_PROCESSOR_EXTERNAL_CONTROL )return processor_notify_external (pr,PROCESSOR_PM_CHANGE ,PM_TYPE_PERF );#endif