Skip to content

Commit ff10ee9

Browse files
claudiubezneadlezcano
authored andcommitted
clocksource/drivers/timer-microchip-pit64b: Use notrace
Use notrace for mchp_pit64b_sched_read_clk() to avoid recursive call of prepare_ftrace_return() when issuing: echo function_graph > /sys/kernel/debug/tracing/current_tracer Fixes: 625022a ("clocksource/drivers/timer-microchip-pit64b: Add Microchip PIT64B support") Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Link: https://lore.kernel.org/r/20220304133601.2404086-3-claudiu.beznea@microchip.com Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent 34f03f7 commit ff10ee9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/clocksource/timer-microchip-pit64b.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ static u64 mchp_pit64b_clksrc_read(struct clocksource *cs)
165165
return mchp_pit64b_cnt_read(mchp_pit64b_cs_base);
166166
}
167167

168-
static u64 mchp_pit64b_sched_read_clk(void)
168+
static u64 notrace mchp_pit64b_sched_read_clk(void)
169169
{
170170
return mchp_pit64b_cnt_read(mchp_pit64b_cs_base);
171171
}

0 commit comments

Comments
 (0)