summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-20 10:00:28 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-24 08:31:01 +0100
commitb0efca5b510e1f9e8535d3d18501a80a381c9661 (patch)
treec7cdcfeefe975e09d261a59f58d4a12c55f19445
parentscore: Delete unused STATES_ALL_SET (diff)
downloadrtems-b0efca5b510e1f9e8535d3d18501a80a381c9661.tar.bz2
score: _Debug_Is_thread_dispatching_allowed()
Do not check ISR level in _Debug_Is_thread_dispatching_allowed().
-rw-r--r--cpukit/score/src/debugisthreaddispatchingallowed.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/score/src/debugisthreaddispatchingallowed.c b/cpukit/score/src/debugisthreaddispatchingallowed.c
index 0bc4b4a271..523fd11dbc 100644
--- a/cpukit/score/src/debugisthreaddispatchingallowed.c
+++ b/cpukit/score/src/debugisthreaddispatchingallowed.c
@@ -17,7 +17,6 @@
#endif
#include <rtems/score/assert.h>
-#include <rtems/score/isr.h>
#include <rtems/score/threaddispatch.h>
#if defined( RTEMS_DEBUG )
@@ -32,6 +31,6 @@
dispatch_allowed = per_cpu->thread_dispatch_disable_level == 0;
_ISR_Enable_without_giant( level );
- return dispatch_allowed && _ISR_Get_level() == 0;
+ return dispatch_allowed;
}
#endif