From 5aa0fa1cec4ca5b08a82a28c7f6dbdc416904989 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 11 Jan 2017 13:47:22 +0100 Subject: 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. --- cpukit/posix/src/alarm.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'cpukit/posix/src/alarm.c') 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, -- cgit v1.2.3