From 54b4b1f85af465acb4627ec423599a6c3b4a6fad Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 3 Sep 2021 09:46:36 +0200 Subject: 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. --- spec/build/cpukit/librtemscpu.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'spec/build/cpukit/librtemscpu.yml') diff --git a/spec/build/cpukit/librtemscpu.yml b/spec/build/cpukit/librtemscpu.yml index 5957661bd7..16092df2cb 100644 --- a/spec/build/cpukit/librtemscpu.yml +++ b/spec/build/cpukit/librtemscpu.yml @@ -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 -- cgit v1.2.3