RTX5: minor optimization (ARMv6M)
@@ -75,9 +75,7 @@ static uint32_t isr_queue_put (os_object_t *object) {
/// Get Object from ISR Queue.
/// \return object or NULL.
static os_object_t *isr_queue_get (void) {
-#if (EXCLUSIVE_ACCESS == 0)
- uint32_t primask = __get_PRIMASK();
-#else
+#if (EXCLUSIVE_ACCESS != 0)
uint32_t n;
#endif
uint16_t max;
@@ -98,9 +96,7 @@ static os_object_t *isr_queue_get (void) {
ret = NULL;
}
- if (primask == 0U) {
__enable_irq();
- }
#else
if (atomic_dec16_nz(&osRtxInfo.isr_queue.cnt) != 0U) {
n = atomic_inc16_lim(&osRtxInfo.isr_queue.out, max);
