[PATCH] ARM: make cpu_init() notrace

Russell King - ARM Linux linux at arm.linux.org.uk
Mon Apr 22 10:07:11 EDT 2013


On Thu, Apr 18, 2013 at 05:20:46PM +0100, Jon Medhurst (Tixy) wrote:
> On resume from CPU power down any trace hooks enabled in cpu_init()
> will get called before that function has done set_my_cpu_offset(),
> so any use of per-cpu variables by trace hook code will cause bad
> things to happen. Prevent this by marking the function notrace.
> 
> This fixes lockups/crashes seen when enabling function tracer on TC2
> with the not yet mainlined cpuidle driver.

Looks sane.  Needs to go to the patch system though.  Not sure if it'll
make 3.9 given its proximity (we're on -rc8).



More information about the linux-arm-kernel mailing list