diff options
Diffstat (limited to 'cpukit/posix/src/clocksettime.c')
-rw-r--r-- | cpukit/posix/src/clocksettime.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cpukit/posix/src/clocksettime.c b/cpukit/posix/src/clocksettime.c index 4d3be3b4a2..8eb616c8b5 100644 --- a/cpukit/posix/src/clocksettime.c +++ b/cpukit/posix/src/clocksettime.c @@ -19,9 +19,7 @@ #endif #include <time.h> -#include <errno.h> -#include <rtems/score/threaddispatch.h> #include <rtems/score/todimpl.h> #include <rtems/seterr.h> @@ -41,9 +39,7 @@ int clock_settime( if ( tp->tv_sec < TOD_SECONDS_1970_THROUGH_1988 ) rtems_set_errno_and_return_minus_one( EINVAL ); - _Thread_Disable_dispatch(); - _TOD_Set_with_timespec( tp ); - _Thread_Enable_dispatch(); + _TOD_Set_with_timespec( tp ); } #ifdef _POSIX_CPUTIME else if ( clock_id == CLOCK_PROCESS_CPUTIME_ID ) |