score: _Debug_Is_thread_dispatching_allowed()

Do not check ISR level in _Debug_Is_thread_dispatching_allowed().
This commit is contained in:
Sebastian Huber
2014-03-20 10:00:28 +01:00
parent b3b960002a
commit b0efca5b51

View File

@@ -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