]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/drivers/pistachio: Prevent ftrace recursion
authorJisheng Zhang <jszhang@marvell.com>
Tue, 20 Oct 2015 08:02:36 +0000 (16:02 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 27 Oct 2015 00:33:18 +0000 (01:33 +0100)
commitbceafc98574466f6411c802a9ebf4b8ad6ca4b91
treeacc265ff78963bf83a18e14782af352d613d893f
parent9c7358d790b8d419ea1eca741a4ff7b71d255291
clocksource/drivers/pistachio: Prevent ftrace recursion

Currently pistachio can be used as a scheduler clock. We properly marked
pistachio_read_sched_clock() as notrace but we then call another function
pistachio_clocksource_read_cycles() that _wasn't_ notrace.

Having a traceable function in the sched_clock() path leads to a recursion
within ftrace and a kernel crash.

Fix this by adding notrace attribute to the pistachio_clocksource_read_cycles()
function.

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