From 1ef8e4a8e93a848e2a68f37e029039300f1c936b Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 27 Apr 2016 22:07:56 +0200 Subject: score: Avoid Giant lock for set time of day Update #2555. Update #2630. --- cpukit/posix/src/clocksettime.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'cpukit/posix/src/clocksettime.c') 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 -#include -#include #include #include @@ -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 ) -- cgit v1.2.3