Anton Blanchard a5ccfee05a powerpc: Fix RCU idle and hcall tracing
Tracepoints should not be called inside an rcu_idle_enter/rcu_idle_exit
region. Since pSeries calls H_CEDE in the idle loop, we were violating
this rule.

commit a7b152d5342c (powerpc: Tell RCU about idle after hcall tracing)
tried to work around it by delaying the rcu_idle_enter until after we
called the hcall tracepoint, but there are a number of issues with it.

The hcall tracepoint trampoline code is called conditionally when the
tracepoint is enabled. If the tracepoint is not enabled we never call
rcu_idle_enter. The idle_uses_rcu check was also done at compile time
which breaks multiplatform builds.

The simple fix is to avoid tracing H_CEDE and rely on other tracepoints
and the hypervisor dispatch trace log to work out if we called H_CEDE.

This fixes a hang during boot on pSeries.

Signed-off-by: Anton Blanchard <anton@samba.org>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2012-01-11 11:54:20 +11:00
..
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-12-09 07:51:02 -05:00
2012-01-11 11:54:20 +11:00
2011-09-23 10:27:03 +10:00
2011-03-31 11:26:23 -03:00
2012-01-03 22:54:56 -05:00
2011-03-31 11:26:23 -03:00
2010-12-09 15:35:32 +11:00
2010-09-22 09:33:50 -07:00
2011-07-26 16:49:47 -07:00
2010-07-19 10:56:54 +02:00
2011-03-31 11:26:23 -03:00
2011-12-08 14:02:23 +11:00
2011-12-21 22:03:32 +01:00