From: Bin Meng Date: Thu, 12 Nov 2015 23:59:43 -0800 Subject: [U-Boot] [PATCH v2 07/11] x86: tsc: Use notrace from In-Reply-To: <1447401587-26223-1-git-send-email-bmeng.cn@gmail.com> References: <1447401587-26223-1-git-send-email-bmeng.cn@gmail.com> Message-ID: <1447401587-26223-8-git-send-email-bmeng.cn@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Replace __attribute__((no_instrument_function)) with notrace from . Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in v2: None arch/x86/lib/tsc_timer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/lib/tsc_timer.c b/arch/x86/lib/tsc_timer.c index e02b918..5a962ce 100644 --- a/arch/x86/lib/tsc_timer.c +++ b/arch/x86/lib/tsc_timer.c @@ -288,7 +288,7 @@ void timer_set_base(u64 base) * restart. This yields a free running counter guaranteed to take almost 6 * 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(); @@ -299,7 +299,7 @@ u64 __attribute__((no_instrument_function)) get_ticks(void) } /* 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; @@ -337,7 +337,7 @@ ulong get_timer(ulong 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(); } -- 1.8.2.1