score: Add _TOD_Is_valid_new_time_of_day()

Move the TOD validation to the callers of _TOD_Set().  This avoids dead code in
case only rtems_clock_set() is used in an application because rtems_clock_set()
always calls _TOD_Set() with a valid time of day.
This commit is contained in:
Sebastian Huber
2021-09-03 09:46:36 +02:00
parent c8e4de991d
commit 54b4b1f85a
7 changed files with 87 additions and 22 deletions

View File

@@ -1390,6 +1390,7 @@ source:
- cpukit/score/src/coresem.c
- cpukit/score/src/coretod.c
- cpukit/score/src/coretodadjust.c
- cpukit/score/src/coretodcheck.c
- cpukit/score/src/coretodhookdata.c
- cpukit/score/src/coretodhookregister.c
- cpukit/score/src/coretodhookrun.c