]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/drivers/digicolor: Prevent ftrace recursion
authorJisheng Zhang <jszhang@marvell.com>
Tue, 20 Oct 2015 08:02:39 +0000 (16:02 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 27 Oct 2015 00:34:17 +0000 (01:34 +0100)
commit1e065a5b69b93284c016f0e354425acc0a479f95
tree154449f362bef9dce42cd4d5c5cc6c2521fa07a5
parent76ff6c22a947026c2f06dcdce062e1ddfe3e32b6
clocksource/drivers/digicolor: 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 digicolor_timer_sched_read() function. Fix this by adding
the notrace attribute to this function.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Acked-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-digicolor.c