All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen/arm: disable cpuidle when linux is running as dom0
@ 2013-07-15 14:21 ` Julien Grall
  0 siblings, 0 replies; 14+ messages in thread
From: Julien Grall @ 2013-07-15 14:21 UTC (permalink / raw)
  To: linux-arm-kernel

When linux is running as dom0, Xen doesn't show the physical cpu but a
virtual CPU.
On some ARM SOC (for instance the exynos 5250), linux registers callbacks
for cpuidle. When these callbacks are called, they will modify
directly the physical cpu not the virtual one. It can impact the whole board
instead of dom0.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
---
 arch/arm/xen/enlighten.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c
index 49839d8..a98999f 100644
--- a/arch/arm/xen/enlighten.c
+++ b/arch/arm/xen/enlighten.c
@@ -24,6 +24,8 @@
 #include <linux/of.h>
 #include <linux/of_irq.h>
 #include <linux/of_address.h>
+#include <linux/cpuidle.h>
+#include <linux/cpufreq.h>
 
 #include <linux/mm.h>
 
@@ -292,6 +294,11 @@ static int __init xen_pm_init(void)
 {
 	pm_power_off = xen_power_off;
 	arm_pm_restart = xen_restart;
+	/*
+	 * Making sure board specific code will not set up ops for
+	 * cpu idle.
+	 */
+	disable_cpuidle();
 
 	return 0;
 }
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2013-07-18 17:21 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-15 14:21 [PATCH] xen/arm: disable cpuidle when linux is running as dom0 Julien Grall
2013-07-15 14:21 ` Julien Grall
2013-07-15 15:25 ` Konrad Rzeszutek Wilk
2013-07-15 15:25 ` [Xen-devel] " Konrad Rzeszutek Wilk
2013-07-15 15:25   ` Konrad Rzeszutek Wilk
2013-07-15 16:22   ` Julien Grall
2013-07-15 16:22     ` Julien Grall
2013-07-15 16:22   ` Julien Grall
2013-07-17 13:28   ` Stefano Stabellini
2013-07-17 13:28   ` [Xen-devel] " Stefano Stabellini
2013-07-17 13:28     ` Stefano Stabellini
2013-07-18 17:20     ` Julien Grall
2013-07-18 17:20     ` [Xen-devel] " Julien Grall
2013-07-18 17:20       ` Julien Grall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.