Ignore:
Timestamp:
Jun 6, 2013, 1:32:22 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
8f420927
Parents:
6eba7c85
git-author:
Sebastian Huber <sebastian.huber@…> (06/06/13 13:32:22)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/14/13 14:26:08)
Message:

scheduler: Add and use _Scheduler_default_Tick()

Delete _Scheduler_priority_Tick(). Use _SMP_Get_processor_count() for
default tick operation. Delete _Scheduler_simple_smp_Tick().

File:
1 moved

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/schedulerdefaulttick.c

    r6eba7c85 ra344308  
    22 * @file
    33 *
    4  * @brief Priority Scheduler At Tick Handler
     4 * @brief Default Scheduler At Tick Handler
    55 *
    66 * @ingroup ScoreScheduler
     
    2121
    2222#include <rtems/system.h>
    23 #include <rtems/score/schedulerpriority.h>
     23#include <rtems/score/scheduler.h>
     24#include <rtems/score/thread.h>
     25#include <rtems/score/smp.h>
    2426
    25 void _Scheduler_priority_Tick( void )
     27static void _Scheduler_default_Tick_for_executing( Thread_Control *executing )
    2628{
    27   Thread_Control *executing;
    28 
    29   executing = _Thread_Executing;
    30 
    3129  #ifdef __RTEMS_USE_TICKS_FOR_STATISTICS__
    3230    /*
     
    8280  }
    8381}
     82
     83void _Scheduler_default_Tick( void )
     84{
     85  uint32_t processor_count = _SMP_Get_processor_count();
     86  uint32_t processor;
     87
     88  for ( processor = 0 ; processor < processor_count ; ++processor ) {
     89    _Scheduler_default_Tick_for_executing(
     90      _Per_CPU_Information[ processor ].executing
     91    );
     92  }
     93}
Note: See TracChangeset for help on using the changeset viewer.