Skip to content
Snippets Groups Projects
Commit 2f80fc50 authored by Bin Meng's avatar Bin Meng Committed by Simon Glass
Browse files

x86: tsc: Use notrace from <linux/compiler.h>


Replace __attribute__((no_instrument_function)) with notrace from
<linux/compiler.h>.

Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent 0f3176ed
No related branches found
No related tags found
No related merge requests found
...@@ -288,7 +288,7 @@ void timer_set_base(u64 base) ...@@ -288,7 +288,7 @@ void timer_set_base(u64 base)
* restart. This yields a free running counter guaranteed to take almost 6 * restart. This yields a free running counter guaranteed to take almost 6
* years to wrap around even at 100GHz clock rate. * years to wrap around even at 100GHz clock rate.
*/ */
u64 __attribute__((no_instrument_function)) get_ticks(void) u64 notrace get_ticks(void)
{ {
u64 now_tick = rdtsc(); u64 now_tick = rdtsc();
...@@ -299,7 +299,7 @@ u64 __attribute__((no_instrument_function)) get_ticks(void) ...@@ -299,7 +299,7 @@ u64 __attribute__((no_instrument_function)) get_ticks(void)
} }
/* Get the speed of the TSC timer in MHz */ /* Get the speed of the TSC timer in MHz */
unsigned __attribute__((no_instrument_function)) long get_tbclk_mhz(void) unsigned notrace long get_tbclk_mhz(void)
{ {
unsigned long fast_calibrate; unsigned long fast_calibrate;
...@@ -337,7 +337,7 @@ ulong get_timer(ulong base) ...@@ -337,7 +337,7 @@ ulong get_timer(ulong base)
return get_ms_timer() - base; return get_ms_timer() - base;
} }
ulong __attribute__((no_instrument_function)) timer_get_us(void) ulong notrace timer_get_us(void)
{ {
return get_ticks() / get_tbclk_mhz(); return get_ticks() / get_tbclk_mhz();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment