summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-12-04 14:26:55 (UTC)
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-12-04 15:11:05 (UTC)
commitfdcba406db1c714f7614cdfcb6173e03fd6e6660 (patch)
tree5760c4a3939029c5c34f169a83985d217a184b93
parent8f79854e6678454287526c939cbb1b9903136812 (diff)
downloadrtems-fdcba406db1c714f7614cdfcb6173e03fd6e6660.tar.bz2
bsp/leon3: Fix CPU counter frequency
-rw-r--r--bsps/sparc/leon3/start/cpucounter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsps/sparc/leon3/start/cpucounter.c b/bsps/sparc/leon3/start/cpucounter.c
index e477d1b..f583d9b 100644
--- a/bsps/sparc/leon3/start/cpucounter.c
+++ b/bsps/sparc/leon3/start/cpucounter.c
@@ -71,7 +71,7 @@ static void leon3_counter_initialize(void)
);
leon3_counter_frequency = ambapp_freq_get(&ambapp_plb, LEON3_Timer_Adev) /
- (gpt->scaler_reload - 1);
+ (gpt->scaler_reload + 1);
}
}