diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-16 16:01:32 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-16 16:01:32 +0000 |
commit | 7fec3b7a368295fc35f628b0cfc94cd5ab6f7e48 (patch) | |
tree | 9231e0cd0532a036f7598d17a0d28f554752777e | |
parent | Moved utsname from "build for now" (unimplemented files) to the main (diff) | |
download | rtems-7fec3b7a368295fc35f628b0cfc94cd5ab6f7e48.tar.bz2 |
Added call to _Watchdog_Remove to remove the sporadic timer. It was
being reinserted onto the ticks chain.
-rw-r--r-- | c/src/exec/posix/src/pthreadsetschedparam.c | 1 | ||||
-rw-r--r-- | cpukit/posix/src/pthreadsetschedparam.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/c/src/exec/posix/src/pthreadsetschedparam.c b/c/src/exec/posix/src/pthreadsetschedparam.c index 50d3bbcea3..97bc4351b7 100644 --- a/c/src/exec/posix/src/pthreadsetschedparam.c +++ b/c/src/exec/posix/src/pthreadsetschedparam.c @@ -115,6 +115,7 @@ int pthread_setschedparam( case SCHED_SPORADIC: api->ss_high_priority = api->schedparam.sched_priority; + _Watchdog_Remove( &api->Sporadic_timer ); _POSIX_Threads_Sporadic_budget_TSR( 0, the_thread ); break; } diff --git a/cpukit/posix/src/pthreadsetschedparam.c b/cpukit/posix/src/pthreadsetschedparam.c index 50d3bbcea3..97bc4351b7 100644 --- a/cpukit/posix/src/pthreadsetschedparam.c +++ b/cpukit/posix/src/pthreadsetschedparam.c @@ -115,6 +115,7 @@ int pthread_setschedparam( case SCHED_SPORADIC: api->ss_high_priority = api->schedparam.sched_priority; + _Watchdog_Remove( &api->Sporadic_timer ); _POSIX_Threads_Sporadic_budget_TSR( 0, the_thread ); break; } |