All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bin Meng <bmeng.cn@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 07/11] x86: tsc: Use notrace from <linux/compiler.h>
Date: Fri, 13 Nov 2015 00:11:20 -0800	[thread overview]
Message-ID: <1447402284-26598-8-git-send-email-bmeng.cn@gmail.com> (raw)
In-Reply-To: <1447402284-26598-1-git-send-email-bmeng.cn@gmail.com>

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

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
---

Changes in v3: None
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

  parent reply	other threads:[~2015-11-13  8:11 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-13  8:11 [U-Boot] [PATCH v3 00/11] dm: timer: x86: 64-bit counter support and tsc timer dm conversion Bin Meng
2015-11-13  8:11 ` [U-Boot] [PATCH v3 01/11] dm: timer: Fix several nits Bin Meng
2015-11-24  2:26   ` Simon Glass
2015-11-13  8:11 ` [U-Boot] [PATCH v3 02/11] dm: timer: Implement pre_probe() Bin Meng
2015-11-24  2:26   ` Simon Glass
2015-11-13  8:11 ` [U-Boot] [PATCH v3 03/11] timer: altera: Remove the codes to get clock frequency Bin Meng
2015-11-24  2:26   ` Simon Glass
2015-11-13  8:11 ` [U-Boot] [PATCH v3 04/11] timer: sandbox: Use device tree to pass the " Bin Meng
2015-11-22 16:24   ` Simon Glass
2015-11-13  8:11 ` [U-Boot] [PATCH v3 05/11] dm: timer: Support 64-bit counter Bin Meng
2015-11-14  2:04   ` Simon Glass
2015-11-16  2:19     ` Bin Meng
2015-11-20 21:10       ` Simon Glass
2015-11-21  0:41         ` Thomas Chou
2015-11-22 16:21           ` Simon Glass
2015-11-24  2:27             ` Simon Glass
2015-11-24 10:09             ` Simon Glass
2015-11-24 14:01               ` Thomas Chou
2015-11-24 18:23                 ` Simon Glass
2015-11-24 20:32                   ` Simon Glass
2015-11-25  3:20                   ` Thomas Chou
2015-11-25  6:44                     ` Bin Meng
2015-11-25 16:51                       ` Simon Glass
2015-11-26 17:49                         ` Simon Glass
2015-11-16  5:03     ` Bin Meng
2015-11-13  8:11 ` [U-Boot] [PATCH v3 06/11] x86: Reomve MIN_PORT80_KCLOCKS_DELAY Bin Meng
2015-11-24  2:27   ` Simon Glass
2015-11-13  8:11 ` Bin Meng [this message]
2015-11-24  2:27   ` [U-Boot] [PATCH v3 07/11] x86: tsc: Use notrace from <linux/compiler.h> Simon Glass
2015-11-13  8:11 ` [U-Boot] [PATCH v3 08/11] x86: tsc: Add driver model timer support Bin Meng
2015-11-24  2:27   ` Simon Glass
2015-11-13  8:11 ` [U-Boot] [PATCH v3 09/11] x86: Convert to use driver model timer Bin Meng
2015-11-24  2:27   ` Simon Glass
2015-11-13  8:11 ` [U-Boot] [PATCH v3 10/11] x86: tsc: Remove legacy timer codes Bin Meng
2015-11-24  2:27   ` Simon Glass
2015-11-13  8:11 ` [U-Boot] [PATCH v3 11/11] x86: tsc: Move tsc_timer.c to drivers/timer Bin Meng
2015-11-24  2:27   ` Simon Glass
2015-11-13  9:20 ` [U-Boot] [PATCH v3 00/11] dm: timer: x86: 64-bit counter support and tsc timer dm conversion Thomas Chou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1447402284-26598-8-git-send-email-bmeng.cn@gmail.com \
    --to=bmeng.cn@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.