summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pthreadcreate.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-15 08:50:29 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-15 08:55:18 +0200
commit5d65d0ddaf66cb621a5656c4dc6ccd1dfcc7afb4 (patch)
tree14cc47ab2ff0886ac680bf2bcfb58b96b15f1e0d /cpukit/posix/src/pthreadcreate.c
parentposix: Remove superfluous code (diff)
downloadrtems-5d65d0ddaf66cb621a5656c4dc6ccd1dfcc7afb4.tar.bz2
posix: Use _POSIX_Threads_Sporadic_timer_insert()
Diffstat (limited to 'cpukit/posix/src/pthreadcreate.c')
-rw-r--r--cpukit/posix/src/pthreadcreate.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/cpukit/posix/src/pthreadcreate.c b/cpukit/posix/src/pthreadcreate.c
index 7f95898b62..af19313689 100644
--- a/cpukit/posix/src/pthreadcreate.c
+++ b/cpukit/posix/src/pthreadcreate.c
@@ -31,10 +31,8 @@
#include <rtems/score/threadimpl.h>
#include <rtems/score/apimutex.h>
#include <rtems/score/stackimpl.h>
-#include <rtems/score/watchdogimpl.h>
#include <rtems/score/schedulerimpl.h>
-
static inline size_t _POSIX_Threads_Ensure_minimum_stack (
size_t size
)
@@ -253,11 +251,7 @@ int pthread_create(
if ( schedpolicy == SCHED_SPORADIC ) {
_ISR_lock_ISR_disable( &lock_context );
- _Watchdog_Per_CPU_insert_relative(
- &api->Sporadic_timer,
- _Per_CPU_Get(),
- _Timespec_To_ticks( &api->schedparam.sched_ss_repl_period )
- );
+ _POSIX_Threads_Sporadic_timer_insert( api );
_ISR_lock_ISR_enable( &lock_context );
}