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)
commit76b1ba7feda533a74c5874a1d15bb4039083efc8
tree154449f362bef9dce42cd4d5c5cc6c2521fa07a5
parentbd859a44b2f6749fd82e89dabbaa37f2c8aa33fe
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