diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-06-01 21:44:01 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-06-01 21:44:01 +0000 |
commit | 931dd976bc501c0af8e4a7f8c40242185e7ff970 (patch) | |
tree | a742a5e88027361d5e7a7c752ff21c4da6eb8c6c /cpukit/score/src/threadreset.c | |
parent | 2009-06-01 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-931dd976bc501c0af8e4a7f8c40242185e7ff970.tar.bz2 |
2009-06-01 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/include/rtems/score/thread.h, score/src/threadinitialize.c,
score/src/threadreset.c, score/src/threadresume.c,
score/src/threadsuspend.c: Nesting count on thread suspension is only
supported from ITRON API so disable if ITRON is disabled.
Diffstat (limited to 'cpukit/score/src/threadreset.c')
-rw-r--r-- | cpukit/score/src/threadreset.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/score/src/threadreset.c b/cpukit/score/src/threadreset.c index b1e15ef3c2..847a4d1be2 100644 --- a/cpukit/score/src/threadreset.c +++ b/cpukit/score/src/threadreset.c @@ -47,7 +47,9 @@ void _Thread_Reset( ) { the_thread->resource_count = 0; - the_thread->suspend_count = 0; + #if defined(RTEMS_ITRON_API) + the_thread->suspend_count = 0; + #endif the_thread->is_preemptible = the_thread->Start.is_preemptible; the_thread->budget_algorithm = the_thread->Start.budget_algorithm; the_thread->budget_callout = the_thread->Start.budget_callout; |