From d7feb8677d48162bf8db34406c232e0179d43dc6 Mon Sep 17 00:00:00 2001 From: Kuan-Hsun Chen Date: Wed, 25 Jan 2017 21:47:48 +0100 Subject: Remove rtems_rate_monotonic_postponed_job_count() Add a variable named "count" in rtems_rate_monotonic_period_status structure. Revise rtems_rate_monotonic_get_status() for the postponed job count. sptests/sp69: Add in the verification of the postponed job count for rtems_rate_monotonic_get_status(). Update #2795. --- cpukit/rtems/src/ratemonperiod.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'cpukit/rtems/src/ratemonperiod.c') diff --git a/cpukit/rtems/src/ratemonperiod.c b/cpukit/rtems/src/ratemonperiod.c index 97547e2c77..efcd121584 100644 --- a/cpukit/rtems/src/ratemonperiod.c +++ b/cpukit/rtems/src/ratemonperiod.c @@ -302,20 +302,6 @@ static rtems_status_code _Rate_monotonic_Block_while_expired( return RTEMS_TIMEOUT; } -uint32_t rtems_rate_monotonic_postponed_job_count( rtems_id period_id ) -{ - Rate_monotonic_Control *the_period; - ISR_lock_Context lock_context; - uint32_t jobs; - - the_period = _Rate_monotonic_Get( period_id, &lock_context ); - _Assert( the_period != NULL ); - - jobs = the_period->postponed_jobs; - _Rate_monotonic_Release( the_period, &lock_context ); - return jobs; -} - rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length -- cgit v1.2.3