summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-11 13:47:22 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-11 13:52:15 +0100
commit5aa0fa1cec4ca5b08a82a28c7f6dbdc416904989 (patch)
treeca3afe01163e79dda35d996da77e04e598d30e25 /cpukit/posix/src
parentscore: Improve SMP lock debug support (diff)
downloadrtems-5aa0fa1cec4ca5b08a82a28c7f6dbdc416904989.tar.bz2
posix: Fix alarm() in SMP configurations
Avoid to change the CPU of the watchdog right in the middle of the critical section. This would corrupt the watchdog lock states.
Diffstat (limited to 'cpukit/posix/src')
-rw-r--r--cpukit/posix/src/alarm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/cpukit/posix/src/alarm.c b/cpukit/posix/src/alarm.c
index 10443e4760..dcc56431ea 100644
--- a/cpukit/posix/src/alarm.c
+++ b/cpukit/posix/src/alarm.c
@@ -83,8 +83,6 @@ unsigned int alarm(
);
if ( ticks != 0 ) {
- cpu = _Per_CPU_Get();
- _Watchdog_Set_CPU( the_watchdog, cpu );
_Watchdog_Insert(
&cpu->Watchdog.Header[ PER_CPU_WATCHDOG_RELATIVE ],
the_watchdog,