From 23fec9f0e18dc4913fab818118f836af150b98f3 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 27 Mar 2014 14:16:12 +0100 Subject: score: PR2152: Use allocator mutex for objects Use allocator mutex for objects allocate/free. This prevents that the thread dispatch latency depends on the workspace/heap fragmentation. --- cpukit/score/include/rtems/score/threadimpl.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'cpukit/score/include/rtems/score/threadimpl.h') diff --git a/cpukit/score/include/rtems/score/threadimpl.h b/cpukit/score/include/rtems/score/threadimpl.h index d0c7933aa3..2ac8344577 100644 --- a/cpukit/score/include/rtems/score/threadimpl.h +++ b/cpukit/score/include/rtems/score/threadimpl.h @@ -590,13 +590,10 @@ RTEMS_INLINE_ROUTINE uint32_t _Thread_Get_maximum_internal_threads(void) return maximum_internal_threads; } -/** - * This routine allocates an internal thread. - */ - RTEMS_INLINE_ROUTINE Thread_Control *_Thread_Internal_allocate( void ) { - return (Thread_Control *) _Objects_Allocate( &_Thread_Internal_information ); + return (Thread_Control *) + _Objects_Allocate_unprotected( &_Thread_Internal_information ); } RTEMS_INLINE_ROUTINE void _Thread_Request_dispatch_if_executing( -- cgit v1.2.3