From d5423295988918f45b64d50cf0b9501a56b9aa36 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 18 May 2015 11:09:14 +0200 Subject: score: _Thread_Dispatch_disable_critical() Thread dispatching is disabled in case interrupts are disabled. To get an accurate thread dispatch disabled time it is important to use the interrupt disabled instant in case a transition from an interrupt disabled section to a thread dispatch level section happens. --- cpukit/rtems/src/eventsurrender.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/rtems/src/eventsurrender.c') diff --git a/cpukit/rtems/src/eventsurrender.c b/cpukit/rtems/src/eventsurrender.c index b740721e22..a16d40e7df 100644 --- a/cpukit/rtems/src/eventsurrender.c +++ b/cpukit/rtems/src/eventsurrender.c @@ -107,7 +107,7 @@ void _Event_Surrender( if ( unblock ) { Per_CPU_Control *cpu_self; - cpu_self = _Thread_Dispatch_disable_critical(); + cpu_self = _Thread_Dispatch_disable_critical( lock_context ); _Thread_Lock_release_default( the_thread, lock_context ); _Giant_Acquire( cpu_self ); -- cgit v1.2.3