diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-10-30 17:54:29 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-10-30 17:54:29 +0000 |
commit | 94d9beecf41191e96554dd9d12ffdbabe9cc54df (patch) | |
tree | 1ce488f0745b16c27db112b2b2761486576ce8f3 /cpukit/rtems/src/ratemongetstatus.c | |
parent | 2009-10-30 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-94d9beecf41191e96554dd9d12ffdbabe9cc54df.tar.bz2 |
2009-10-30 Glenn Humphrey <glenn.humphrey@oarcorp.com>
PR pr1462/cpukit
* rtems/include/rtems/rtems/ratemon.h, rtems/src/ratemongetstatus.c,
rtems/src/ratemonperiod.c, rtems/src/ratemontimeout.c,
score/include/rtems/score/thread.h: Fix bugs in rate monotonic
statistics.
Diffstat (limited to 'cpukit/rtems/src/ratemongetstatus.c')
-rw-r--r-- | cpukit/rtems/src/ratemongetstatus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/rtems/src/ratemongetstatus.c b/cpukit/rtems/src/ratemongetstatus.c index aea428d2d1..8fc003f7e4 100644 --- a/cpukit/rtems/src/ratemongetstatus.c +++ b/cpukit/rtems/src/ratemongetstatus.c @@ -1,7 +1,7 @@ /* * Rate Monotonic Manager -- Get Status * - * COPYRIGHT (c) 1989-2007. + * COPYRIGHT (c) 1989-2009. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -65,7 +65,7 @@ rtems_status_code rtems_rate_monotonic_get_status( switch ( location ) { case OBJECTS_LOCAL: - status->owner = ((the_period->owner) ? the_period->owner->Object.id : 0); + status->owner = the_period->owner->Object.id; status->state = the_period->state; if ( status->state == RATE_MONOTONIC_INACTIVE ) { |