summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/kern_tc.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2020-06-10 22:30:32 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-11-15 08:56:54 +0100
commit18e6686d1054931781a5a1b18f4dd045850f50a2 (patch)
tree70c4d3b75e33b80b689f2c7adbcd48456e79e438 /cpukit/score/src/kern_tc.c
parentMark more nodes as CTLFLAG_MPSAFE (diff)
downloadrtems-18e6686d1054931781a5a1b18f4dd045850f50a2.tar.bz2
Remove double-calls to tc_get_timecount()
to warm timecounters. It seems that second call does not add any useful state change for all implemented timecounters. Discussed with: bde Sponsored by: The FreeBSD Foundation MFC after: 3 weeks
Diffstat (limited to '')
-rw-r--r--cpukit/score/src/kern_tc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/cpukit/score/src/kern_tc.c b/cpukit/score/src/kern_tc.c
index 16fbb9ba70..39e67ede19 100644
--- a/cpukit/score/src/kern_tc.c
+++ b/cpukit/score/src/kern_tc.c
@@ -1393,7 +1393,6 @@ tc_init(struct timecounter *tc)
return;
#ifndef __rtems__
(void)tc->tc_get_timecount(tc);
- (void)tc->tc_get_timecount(tc);
#endif /* __rtems__ */
timecounter = tc;
#ifdef __rtems__
@@ -1709,7 +1708,6 @@ sysctl_kern_timecounter_hardware(SYSCTL_HANDLER_ARGS)
/* Warm up new timecounter. */
(void)newtc->tc_get_timecount(newtc);
- (void)newtc->tc_get_timecount(newtc);
timecounter = newtc;
@@ -2264,7 +2262,6 @@ inittimecounter(void *dummy)
/* warm up new timecounter (again) and get rolling. */
(void)timecounter->tc_get_timecount(timecounter);
- (void)timecounter->tc_get_timecount(timecounter);
mtx_lock_spin(&tc_setclock_mtx);
tc_windup(NULL);
mtx_unlock_spin(&tc_setclock_mtx);