clocksource/drivers/vf_pit_timer: Prevent ftrace recursion
authorJisheng Zhang <jszhang@marvell.com>
Tue, 20 Oct 2015 08:02:38 +0000 (16:02 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 27 Oct 2015 00:33:58 +0000 (01:33 +0100)
commit36361abc8bc14e80f6b4db561665e5e15249c181
tree60236a7ba6de57c3a5df7d52730d49139360f8f4
parentcdc68ec01853baf3558c6d25f19c869add4a6888
clocksource/drivers/vf_pit_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 pit_read_sched_clock() function. Fix this by adding a
notrace attribute to this function.

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