[PATCH v2 8/9] bsps/leon3: leon3_counter_use_irqamp_timestamp()

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Sep 21 15:19:33 UTC 2023


Simplify leon3_counter_use_irqamp_timestamp().

Update #4954.
---
 bsps/sparc/leon3/start/cpucounter.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/bsps/sparc/leon3/start/cpucounter.c b/bsps/sparc/leon3/start/cpucounter.c
index dcf8d15a65..db4f566021 100644
--- a/bsps/sparc/leon3/start/cpucounter.c
+++ b/bsps/sparc/leon3/start/cpucounter.c
@@ -165,11 +165,7 @@ static void leon3_counter_use_irqamp_timestamp(
 
   tc->counter_register = &irqmp_ts->itcnt;
   tc->base.tc_get_timecount = leon3_timecounter_get_counter_up;
-#if defined(LEON3_PLB_FREQUENCY_DEFINED_BY_GPTIMER)
   tc->base.tc_frequency = leon3_processor_local_bus_frequency();
-#else
-  tc->base.tc_frequency = ambapp_freq_get(ambapp_plb(), LEON3_IrqCtrl_Adev);
-#endif
 }
 
 #endif /* LEON3_IRQAMP_PROBE_TIMESTAMP */
-- 
2.35.3



More information about the devel mailing list