summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/threaddispatch.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-08-10 07:22:43 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-08-20 08:36:31 +0200
commitd14f9349ead2cc64a685616e3c40a0c9ba04f9ea (patch)
tree75c4896ca7c434575fdbfab864e8d3f83bc0c86d /cpukit/include/rtems/score/threaddispatch.h
parentbsps/arm: Fix PL111 register define re-definition (diff)
downloadrtems-d14f9349ead2cc64a685616e3c40a0c9ba04f9ea.tar.bz2
score: Fix ISR enable in _Thread_Dispatch_enable()
This bug had probably no effect since the interrupt enable is idempotent on all CPU ports. Close #3496.
Diffstat (limited to 'cpukit/include/rtems/score/threaddispatch.h')
-rw-r--r--cpukit/include/rtems/score/threaddispatch.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/include/rtems/score/threaddispatch.h b/cpukit/include/rtems/score/threaddispatch.h
index 63eb4c6fb4..69696f4044 100644
--- a/cpukit/include/rtems/score/threaddispatch.h
+++ b/cpukit/include/rtems/score/threaddispatch.h
@@ -228,9 +228,8 @@ RTEMS_INLINE_ROUTINE void _Thread_Dispatch_enable( Per_CPU_Control *cpu_self )
} else {
cpu_self->thread_dispatch_disable_level = 0;
_Profiling_Thread_dispatch_enable( cpu_self, 0 );
+ _ISR_Local_enable( level );
}
-
- _ISR_Local_enable( level );
} else {
_Assert( disable_level > 0 );
cpu_self->thread_dispatch_disable_level = disable_level - 1;