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)
commitbd859a44b2f6749fd82e89dabbaa37f2c8aa33fe
treeb28a06dc5355d944329f3f43837289d0505a5cfc
parent36361abc8bc14e80f6b4db561665e5e15249c181
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