diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-06-12 10:08:58 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-06-14 16:26:07 +0200 |
commit | 5c78940d9421e1c7f2cc5d44eddbf1dca0720ee8 (patch) | |
tree | 0d8431e7ac0138444bf688691612e2135e5949d4 /cpukit/rtems/src/taskmode.c | |
parent | score: Add and use _Thread_Dispatch_is_enabled() (diff) | |
download | rtems-5c78940d9421e1c7f2cc5d44eddbf1dca0720ee8.tar.bz2 |
score: Add and use _Thread_Dispatch_if_necessary()
Delete _Thread_Evaluate_is_dispatch_needed().
Use _Thread_Dispatch_is_enabled() in rtems_task_mode() instead of the
system state to determine if a thread dispatch is allowed. Signales are
now delivered in rtems_task_mode() even if preemption is disabled. This
is in line with rtems_signal_send().
Diffstat (limited to 'cpukit/rtems/src/taskmode.c')
-rw-r--r-- | cpukit/rtems/src/taskmode.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cpukit/rtems/src/taskmode.c b/cpukit/rtems/src/taskmode.c index 66cf505f0c..7b3233e55e 100644 --- a/cpukit/rtems/src/taskmode.c +++ b/cpukit/rtems/src/taskmode.c @@ -100,10 +100,7 @@ rtems_status_code rtems_task_mode( } } - if ( _System_state_Is_up( _System_state_Get() ) ) { - if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) ) - _Thread_Dispatch(); - } + _Thread_Dispatch_if_necessary( executing, needs_asr_dispatching ); return RTEMS_SUCCESSFUL; } |