diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-03-17 16:28:50 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-03-24 14:35:04 +0100 |
commit | 2e9c3d5e2944a8782eac8a12d23af7559873ad0a (patch) | |
tree | d19a9f00f4ca76811e3e4d25af5b48f50a2d47c1 /testsuites | |
parent | cpukit/libmisc/utf8proc/utf8proc.c: Avoid overflow (diff) | |
download | rtems-2e9c3d5e2944a8782eac8a12d23af7559873ad0a.tar.bz2 |
score: Add thread priority change handler
Since the thread current priority change and thread queue requeue is
performed in one critical section it is possible to simplify the thread
queue requeue procedure. Add a thread queue agnostic thread priority
change handler so that we are able to use alternative thread queue
implementations.
Update #2273.
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/sptests/spintrcritical23/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/sptests/spintrcritical23/init.c b/testsuites/sptests/spintrcritical23/init.c index 89fea25a12..8536489f5d 100644 --- a/testsuites/sptests/spintrcritical23/init.c +++ b/testsuites/sptests/spintrcritical23/init.c @@ -70,7 +70,7 @@ static void change_priority(rtems_id timer, void *arg) rtems_interrupt_lock_acquire(&ctx->lock, &lock_context); if ( - ctx->priority_generation != ctx->tcb->priority_generation + ctx->priority_generation != ctx->tcb->Priority.generation && scheduler_node_unchanged(ctx) ) { rtems_task_priority priority_interrupt; @@ -113,7 +113,7 @@ static bool test_body(void *arg) priority_interrupt = 1 + (priority_task + 1) % 3; ctx->priority_task = priority_task; ctx->priority_interrupt = priority_interrupt; - ctx->priority_generation = ctx->tcb->priority_generation; + ctx->priority_generation = ctx->tcb->Priority.generation; memcpy( &ctx->scheduler_node, ctx->tcb->Scheduler.node, |