diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-02-19 09:48:14 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-02-20 15:18:49 +0100 |
commit | 1739bd2439238b9a5150f65a3452c9eb7958a998 (patch) | |
tree | 46098a6828686fce1db19a9af75ecea2ca875bbb /cpukit/rtems/src | |
parent | posix: Remove superfluous check (diff) | |
download | rtems-1739bd2439238b9a5150f65a3452c9eb7958a998.tar.bz2 |
rtems: Remove _Modes_Set_interrupt_level()
This call just obfuscated the call to _ISR_Set_level().
Update #4244.
Diffstat (limited to 'cpukit/rtems/src')
-rw-r--r-- | cpukit/rtems/src/taskmode.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cpukit/rtems/src/taskmode.c b/cpukit/rtems/src/taskmode.c index 24905368c3..e1748bc7bd 100644 --- a/cpukit/rtems/src/taskmode.c +++ b/cpukit/rtems/src/taskmode.c @@ -23,6 +23,7 @@ #include <rtems/rtems/tasksdata.h> #include <rtems/rtems/modesimpl.h> #include <rtems/rtems/signalimpl.h> +#include <rtems/score/isrlevel.h> #include <rtems/score/schedulerimpl.h> #include <rtems/score/smpimpl.h> #include <rtems/score/threadimpl.h> @@ -112,11 +113,8 @@ rtems_status_code rtems_task_mode( executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; } - /* - * Set the new interrupt level - */ - if ( mask & RTEMS_INTERRUPT_MASK ) { - _Modes_Set_interrupt_level( mode_set ); + if ( ( mask & RTEMS_INTERRUPT_MASK ) != 0 ) { + _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) ); } /* |