summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/clocksettime.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-27 22:07:56 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-02 07:46:16 +0200
commit1ef8e4a8e93a848e2a68f37e029039300f1c936b (patch)
tree1a592f827f25a7803f4c70520efd8ce514a523e6 /cpukit/posix/src/clocksettime.c
parentscore: Streamline set time of day functions (diff)
downloadrtems-1ef8e4a8e93a848e2a68f37e029039300f1c936b.tar.bz2
score: Avoid Giant lock for set time of day
Update #2555. Update #2630.
Diffstat (limited to 'cpukit/posix/src/clocksettime.c')
-rw-r--r--cpukit/posix/src/clocksettime.c6
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 )