xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] linux: small ACPI processor external control code adjustments
@ 2010-03-16 10:57 Jan Beulich
  0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2010-03-16 10:57 UTC (permalink / raw)
  To: xen-devel

- don't send a change notification to Xen before having sent an init
  one
- fix a bogus preprocessor directive

Signed-off-by: Jan Beulich <jbeulich@novell.com>

--- a/arch/i386/kernel/acpi/processor_extcntl_xen.c
+++ b/arch/i386/kernel/acpi/processor_extcntl_xen.c
@@ -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:
--- a/drivers/acpi/processor_perflib.c
+++ b/drivers/acpi/processor_perflib.c
@@ -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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-03-16 10:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-16 10:57 [PATCH] linux: small ACPI processor external control code adjustments Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).