1
0
Fork 0

clocksource/drivers/c-sky: fixup ftrace call-graph panic

We must add notrace on sched_clock_read, because it's called
by ftrace_graph_caller.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
hifive-unleashed-5.1
Guo Ren 2018-12-31 20:52:41 +08:00
parent d7950be145
commit 0c87bb0e87
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ static int csky_mptimer_dying_cpu(unsigned int cpu)
/*
* clock source
*/
static u64 sched_clock_read(void)
static u64 notrace sched_clock_read(void)
{
return (u64)mfcr(PTIM_CCVR);
}