Changeset e3bec23d in rtems


Ignore:
Timestamp:
May 11, 2021, 3:19:31 PM (5 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
51f7a82
Parents:
3af2dc7
git-author:
Sebastian Huber <sebastian.huber@…> (05/11/21 15:19:31)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/12/21 04:41:10)
Message:

rtems: Use rtems_clock_get_ticks_per_second()

This avoids an integer division at runtime.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/src/clocktodvalidate.c

    r3af2dc7 re3bec23d  
    4747  }
    4848
    49   ticks_per_second = TOD_MICROSECONDS_PER_SECOND /
    50             rtems_configuration_get_microseconds_per_tick();
     49  ticks_per_second = rtems_clock_get_ticks_per_second();
     50
    5151  if ((the_tod->ticks  >= ticks_per_second)       ||
    5252      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||
Note: See TracChangeset for help on using the changeset viewer.