[PATCH 0/7] Clean up some CLOCK_REALTIME related issues

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Sep 3 13:33:17 UTC 2021


See also:

https://lists.rtems.org/pipermail/devel/2021-May/067247.html

https://devel.rtems.org/ticket/4338

Sebastian Huber (7):
  score: Return status in _TOD_Adjust()
  score: Remove TOD_TICKS_PER_SECOND_method()
  score: Add _TOD_Is_valid_new_time_of_day()
  score: Limit the CLOCK_REALTIME setting
  score: Simplify _TOD_Validate()
  score: Always validate ticks in _TOD_Validate()
  score: Change TOD_LATEST_YEAR to 2099

 bsps/arm/altera-cyclone-v/rtc/rtc.c     |  4 +-
 bsps/bfin/shared/dev/rtc.c              |  9 +--
 bsps/shared/dev/rtc/rtc-support.c       |  2 +-
 cpukit/Makefile.am                      |  2 +-
 cpukit/include/rtems/rtems/clockimpl.h  | 28 +--------
 cpukit/include/rtems/score/todimpl.h    | 79 ++++++++++++++++++-------
 cpukit/posix/src/adjtime.c              |  6 +-
 cpukit/posix/src/clocksettime.c         |  5 ++
 cpukit/rtems/src/clockgettod.c          |  6 +-
 cpukit/rtems/src/clockset.c             |  2 +-
 cpukit/rtems/src/clocktodtoseconds.c    | 33 +++--------
 cpukit/rtems/src/clocktodvalidate.c     | 62 ++++++++++---------
 cpukit/rtems/src/taskwakewhen.c         |  2 +-
 cpukit/rtems/src/timercreate.c          |  2 +-
 cpukit/score/src/coretodadjust.c        | 12 +++-
 cpukit/score/src/coretodcheck.c         | 59 ++++++++++++++++++
 cpukit/score/src/coretodset.c           | 22 +------
 cpukit/score/src/coretodtickspersec.c   | 30 ----------
 spec/build/cpukit/librtemscpu.yml       |  2 +-
 testsuites/psxtests/psxclock/init.c     | 15 +++++
 testsuites/sptests/sp2038/init.c        | 47 +++------------
 testsuites/sptests/spclock_err02/init.c |  8 +--
 testsuites/sptests/sptask_err02/init.c  |  5 +-
 23 files changed, 222 insertions(+), 220 deletions(-)
 create mode 100644 cpukit/score/src/coretodcheck.c
 delete mode 100644 cpukit/score/src/coretodtickspersec.c

-- 
2.26.2



More information about the devel mailing list