]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7700/2: Make cpu_init() notrace
authorJon Medhurst <tixy@linaro.org>
Thu, 25 Apr 2013 13:40:22 +0000 (14:40 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 26 Apr 2013 10:09:32 +0000 (11:09 +0100)
commit31120dbd1339b6c04ecfdc90e4f704d45e686d2b
tree1612586354fd64fb3857c3f6157e95f86b72b954
parent769e9b81afdca567498db94d5d4c72dd0210d01b
ARM: 7700/2: Make cpu_init() notrace

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.

Signed-off-by: Jon Medhurst <tixy@linaro.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/setup.c