summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/Unlimited.txt
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-10-28 10:22:58 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-11-15 08:56:54 +0100
commit346755874b5e0b4446bd21036a56574081b43e3f (patch)
treeb1714b322539f3a03c91689776fb072fd4c8b596 /cpukit/score/src/Unlimited.txt
parenttimecounter: Lock the timecounter list (diff)
downloadrtems-346755874b5e0b4446bd21036a56574081b43e3f.tar.bz2
kern_tc.c: Scaling/large delta recalculation
This change is a slight performance optimization for systems with a slow 64-bit division. The th->th_scale and th->th_large_delta values only depend on the timecounter frequency and the th->th_adjustment. The timecounter frequency of a timehand only changes when a new timecounter is activated for the timehand. The th->th_adjustment is only changed by the NTP second update. The NTP second update is not done for every call of tc_windup(). Move the code block to recalculate the scaling factor and the large delta of a timehand to the new helper function recalculate_scaling_factor_and_large_delta(). Call recalculate_scaling_factor_and_large_delta() when a new timecounter is activated and a NTP second update occurred. MFC after: 1 week
Diffstat (limited to 'cpukit/score/src/Unlimited.txt')
0 files changed, 0 insertions, 0 deletions