diff mbox series

[3/3] riscv: Mark andes_plmt_get_count() with 'notrace'

Message ID 20200824144429.12641-4-pragnesh.patel@sifive.com
State New
Delegated to: Andes
Headers show
Series RISC-V tracing support | expand

Commit Message

Pragnesh Patel Aug. 24, 2020, 2:44 p.m. UTC
For M-mode U-boot, andes_plmt_get_count() will provide timer counter.
Mark it as 'notrace' so that it doesn't cause infinite recursion.

Signed-off-by: Pragnesh Patel <pragnesh.patel@sifive.com>
---
 arch/riscv/lib/andes_plmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/arch/riscv/lib/andes_plmt.c b/arch/riscv/lib/andes_plmt.c
index b0245d0b52..488a98406b 100644
--- a/arch/riscv/lib/andes_plmt.c
+++ b/arch/riscv/lib/andes_plmt.c
@@ -17,7 +17,7 @@ 
 /* mtime register */
 #define MTIME_REG(base)			((ulong)(base))
 
-static int andes_plmt_get_count(struct udevice *dev, u64 *count)
+static int notrace andes_plmt_get_count(struct udevice *dev, u64 *count)
 {
 	*count = readq((void __iomem *)MTIME_REG(dev->priv));