]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/drivers/fsl_ftm_timer: Prevent ftrace recursion
authorJisheng Zhang <jszhang@marvell.com>
Tue, 20 Oct 2015 08:02:40 +0000 (16:02 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 27 Oct 2015 00:34:07 +0000 (01:34 +0100)
commit406a933e2e7fbca925279adbb7355adb2675cf20
treeb28a06dc5355d944329f3f43837289d0505a5cfc
parentec6d47be475fd373405e5074269d0fa663d26765
clocksource/drivers/fsl_ftm_timer: Prevent ftrace recursion

Having a traceable function in the sched_clock() path leads to a recursion
within ftrace and a kernel crash.

We should not trace the ftm_read_sched_clock() function.

Fix this by adding the notrace attribute to this function.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/fsl_ftm_timer.c