clocksource/drivers/digicolor: Prevent ftrace recursion
authorJisheng Zhang <[email protected]>
Tue, 20 Oct 2015 08:02:39 +0000 (16:02 +0800)
committerDaniel Lezcano <[email protected]>
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 <[email protected]>
Acked-by: Baruch Siach <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
drivers/clocksource/timer-digicolor.c