]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2254a5d3e914d5cee4843628921a1fc130e84298
tree60236a7ba6de57c3a5df7d52730d49139360f8f4
parentdb9cd43d839f6c4dc33e81a9df812084df7c980b
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