--- zzzz-none-000/linux-2.6.39.4/kernel/trace/trace_clock.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/kernel/trace/trace_clock.c 2021-11-10 13:38:18.000000000 +0000 @@ -23,6 +23,32 @@ #include "trace.h" +#ifndef CONFIG_HIGH_RES_TIMERS +extern unsigned long long notrace avalanche_clock_p(void); +u64 notrace trace_clock_p(void) +{ + u64 clock; + + preempt_disable_notrace(); + clock = avalanche_clock_p(); + preempt_enable_notrace(); + + return clock; +} + +extern unsigned long long notrace avalanche_clock_vp(void); +u64 notrace trace_clock_vp(void) +{ + u64 clock; + + preempt_disable_notrace(); + clock = avalanche_clock_vp(); + preempt_enable_notrace(); + + return clock; +} +#endif + /* * trace_clock_local(): the simplest and least coherent tracing clock. *