diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-15 08:50:29 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-15 08:55:18 +0200 |
commit | 5d65d0ddaf66cb621a5656c4dc6ccd1dfcc7afb4 (patch) | |
tree | 14cc47ab2ff0886ac680bf2bcfb58b96b15f1e0d /cpukit/posix/src/pthread.c | |
parent | posix: Remove superfluous code (diff) | |
download | rtems-5d65d0ddaf66cb621a5656c4dc6ccd1dfcc7afb4.tar.bz2 |
posix: Use _POSIX_Threads_Sporadic_timer_insert()
Diffstat (limited to '')
-rw-r--r-- | cpukit/posix/src/pthread.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c index 766ac01e5f..622052c250 100644 --- a/cpukit/posix/src/pthread.c +++ b/cpukit/posix/src/pthread.c @@ -31,14 +31,12 @@ #include <rtems/score/threadimpl.h> #include <rtems/score/threadqimpl.h> #include <rtems/score/userextimpl.h> -#include <rtems/score/watchdogimpl.h> #include <rtems/score/wkspace.h> #include <rtems/posix/pthreadimpl.h> #include <rtems/posix/priorityimpl.h> #include <rtems/posix/psignalimpl.h> #include <rtems/posix/config.h> #include <rtems/posix/keyimpl.h> -#include <rtems/score/timespec.h> #include <rtems/score/cpusetimpl.h> #include <rtems/score/assert.h> @@ -119,11 +117,7 @@ void _POSIX_Threads_Sporadic_budget_TSR( Watchdog_Control *watchdog ) _Timespec_To_ticks( &api->schedparam.sched_ss_init_budget ); _Watchdog_Per_CPU_remove_relative( &api->Sporadic_timer ); - _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 ); new_priority = _POSIX_Priority_To_core( api->schedparam.sched_priority ); |