[PATCH 1/2] riscv: cpu: Rename EVENT_SPY to EVENT_SPY_SIMPLE

Marek Vasut marek.vasut+renesas at mailbox.org
Tue Sep 5 15:48:07 CEST 2023


Fix up cpu.c and align it with commit
6c4cad7438 ("event: Rename EVENT_SPY to EVENT_SPY_FULL")

Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
---
Cc: Chanho Park <chanho61.park at samsung.com>
Cc: Leo <ycliang at andestech.com>
Cc: Nikita Shubin <n.shubin at yadro.com>
Cc: Padmarao Begari <padmarao.begari at microchip.com>
Cc: Rick Chen <rick at andestech.com>
Cc: Simon Glass <sjg at chromium.org>
Cc: Yu Chien Peter Lin <peterlin at andestech.com>
---
 arch/riscv/cpu/cpu.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/riscv/cpu/cpu.c b/arch/riscv/cpu/cpu.c
index d64aa330f20..15beec29875 100644
--- a/arch/riscv/cpu/cpu.c
+++ b/arch/riscv/cpu/cpu.c
@@ -66,7 +66,7 @@ static inline bool supports_extension(char ext)
 #endif /* CONFIG_CPU */
 }
 
-static int riscv_cpu_probe(void *ctx, struct event *event)
+static int riscv_cpu_probe(void)
 {
 #ifdef CONFIG_CPU
 	int ret;
@@ -79,7 +79,7 @@ static int riscv_cpu_probe(void *ctx, struct event *event)
 
 	return 0;
 }
-EVENT_SPY(EVT_DM_POST_INIT_R, riscv_cpu_probe);
+EVENT_SPY_SIMPLE(EVT_DM_POST_INIT_R, riscv_cpu_probe);
 
 /*
  * This is called on secondary harts just after the IPI is init'd. Currently
@@ -96,7 +96,7 @@ int riscv_cpu_setup(void)
 {
 	int ret;
 
-	ret = riscv_cpu_probe(ctx, event);
+	ret = riscv_cpu_probe();
 	if (ret)
 		return ret;
 
-- 
2.40.1



More information about the U-Boot mailing list