arm: tracing: disable tracing for the timer clock functions

The function graph tracer causes a kernel crash when enabled. This is
because the counter_get_cntvct_cp15 and the trace_local_clock functions
call each other recursively causing a kernel stack overflow. Fix this
by annotating the timer clock functions with notrace.

Change-Id: I89864012cf98054265ac8c5ed1fb4870ca00c5a4
CRs-Fixed: 525920
Signed-off-by: Pushkar Joshi <pushkarj@codeaurora.org>
This commit is contained in:
Pushkar Joshi 2013-08-19 10:56:19 -07:00 committed by Stephen Boyd
parent 193fc90150
commit eeb70a608e
3 changed files with 3 additions and 3 deletions

View File

@ -90,7 +90,7 @@ static inline u64 arch_counter_get_cntpct_cp15(void)
return cval;
}
static inline u64 arch_counter_get_cntvct_cp15(void)
static notrace inline u64 arch_counter_get_cntvct_cp15(void)
{
u64 cval;

View File

@ -22,7 +22,7 @@ static unsigned long arch_timer_read_counter_long(void)
return arch_timer_read_counter();
}
static u32 arch_timer_read_counter_u32(void)
static notrace u32 arch_timer_read_counter_u32(void)
{
return arch_timer_read_counter();
}

View File

@ -377,7 +377,7 @@ static u64 arch_counter_get_cntpct_mem(void)
return ((u64) pct_hi << 32) | pct_lo;
}
static u64 arch_counter_get_cntvct_mem(void)
static notrace u64 arch_counter_get_cntvct_mem(void)
{
u32 vct_lo, vct_hi, tmp_hi;