summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadreset.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-06-01 21:44:01 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-06-01 21:44:01 +0000
commit931dd976bc501c0af8e4a7f8c40242185e7ff970 (patch)
treea742a5e88027361d5e7a7c752ff21c4da6eb8c6c /cpukit/score/src/threadreset.c
parent2009-06-01 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-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.c4
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;