summaryrefslogtreecommitdiffstats
path: root/testsuites/smptests/smpmulticast01
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-04-12 11:13:32 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-04-12 11:15:40 +0200
commitef9d20f691cd8bd2135a6d513bf0e2372ba6c93b (patch)
tree29987a4572519f3d9b94e0e9309fdcfc78613396 /testsuites/smptests/smpmulticast01
parentbsp/imx: CLOCK_DRIVER_USE_ONLY_BOOT_PROCESSOR (diff)
downloadrtems-ef9d20f691cd8bd2135a6d513bf0e2372ba6c93b.tar.bz2
score: More robust _SMP_Multicast_action()
If the caller already disabled interrupts, then do not disable thread dispatching. Calling _SMP_Multicast_action() with interrupts disabled is a questionable use case.
Diffstat (limited to 'testsuites/smptests/smpmulticast01')
-rw-r--r--testsuites/smptests/smpmulticast01/init.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/testsuites/smptests/smpmulticast01/init.c b/testsuites/smptests/smpmulticast01/init.c
index 3f3f7dc3fc..f8e74e22cc 100644
--- a/testsuites/smptests/smpmulticast01/init.c
+++ b/testsuites/smptests/smpmulticast01/init.c
@@ -59,14 +59,11 @@ static void multicast_action_irq_disabled(
void *arg
)
{
- Per_CPU_Control *cpu_self;
rtems_interrupt_level level;
- cpu_self = _Thread_Dispatch_disable();
rtems_interrupt_local_disable(level);
_SMP_Multicast_action(targets, handler, arg);
rtems_interrupt_local_enable(level);
- _Thread_Dispatch_enable(cpu_self);
}
static void multicast_action_dispatch_disabled(