Changeset d7feb86 in rtems for cpukit/rtems


Ignore:
Timestamp:
Jan 25, 2017, 8:47:48 PM (3 years ago)
Author:
Kuan-Hsun Chen <c0066c@…>
Branches:
master
Children:
d1505a1
Parents:
27bfcd8
git-author:
Kuan-Hsun Chen <c0066c@…> (01/25/17 20:47:48)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/26/17 09:00:33)
Message:

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.

Location:
cpukit/rtems
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/include/rtems/rtems/ratemon.h

    r27bfcd8 rd7feb86  
    2424/* COPYRIGHT (c) 1989-2009, 2016.
    2525 * On-Line Applications Research Corporation (OAR).
    26  * COPYRIGHT (c) 2016 Kuan-Hsun Chen.
     26 * COPYRIGHT (c) 2016-2017 Kuan-Hsun Chen.
    2727 *
    2828 * The license and distribution terms for this file may be
     
    183183   */
    184184  rtems_thread_cpu_usage_t             executed_since_last_period;
     185
     186  /** This is the count of postponed jobs of this period. */
     187  uint32_t                             postponed_jobs_count;
    185188}  rtems_rate_monotonic_period_status;
    186189
     
    418421);
    419422
    420 /**
    421  * @brief Return the number of postponed jobs
    422  *
    423  * This is a helper function for runtime monitoring to return
    424  * the number of postponed jobs in this given period. This number
    425  * is only increased by the corresponding watchdog,
    426  * and is decreased by RMS manager with the postponed job releasing.
    427  *
    428  * @param[in] id is the period id
    429  *
    430  * @retval This helper function returns the number of postponed
    431  * jobs with a given period_id.
    432  *
    433  */
    434 uint32_t rtems_rate_monotonic_postponed_job_count(
    435   rtems_id        period_id
    436 );
    437 
    438 
    439423/**@}*/
    440424
  • cpukit/rtems/src/ratemongetstatus.c

    r27bfcd8 rd7feb86  
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *  Copyright (c) 2016 embedded brains GmbH.
     12 *  Copyright (c) 2017 Kuan-Hsun Chen.
    1213 *
    1314 *  The license and distribution terms for this file may be
     
    4445  period_status->owner = the_period->owner->Object.id;
    4546  period_status->state = the_period->state;
     47  period_status->postponed_jobs_count = the_period->postponed_jobs;
    4648
    4749  if ( the_period->state == RATE_MONOTONIC_INACTIVE ) {
  • cpukit/rtems/src/ratemonperiod.c

    r27bfcd8 rd7feb86  
    301301  );
    302302  return RTEMS_TIMEOUT;
    303 }
    304 
    305 uint32_t rtems_rate_monotonic_postponed_job_count( rtems_id period_id )
    306 {
    307   Rate_monotonic_Control *the_period;
    308   ISR_lock_Context        lock_context;
    309   uint32_t                jobs;
    310 
    311   the_period = _Rate_monotonic_Get( period_id, &lock_context );
    312   _Assert( the_period != NULL );
    313 
    314   jobs = the_period->postponed_jobs;
    315   _Rate_monotonic_Release( the_period, &lock_context );
    316   return jobs;
    317303}
    318304
Note: See TracChangeset for help on using the changeset viewer.