source: rtems/cpukit/score/src/scheduler.c @ 0daa8ab

5
Last change on this file since 0daa8ab was 913864c, checked in by Sebastian Huber <sebastian.huber@…>, on 10/13/16 at 06:57:29

score: Use scheduler instance specific locks

Update #2556.

  • Property mode set to 100644
File size: 922 bytes
Line 
1/**
2 * @file
3 *
4 * @brief Scheduler Initialize
5 * @ingroup ScoreScheduler
6 */
7
8/*
9 *  Copyright (C) 2010 Gedare Bloom.
10 *  Copyright (C) 2011 On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.org/license/LICENSE.
15 */
16
17#if HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#include <rtems/score/schedulerimpl.h>
22
23void _Scheduler_Handler_initialization(void)
24{
25  size_t n;
26  size_t i;
27
28  n = _Scheduler_Count;
29
30  for ( i = 0 ; i < n ; ++i ) {
31    const Scheduler_Control *scheduler;
32#if defined(RTEMS_SMP)
33    Scheduler_Context       *context;
34#endif
35
36    scheduler = &_Scheduler_Table[ i ];
37#if defined(RTEMS_SMP)
38    context = _Scheduler_Get_context( scheduler );
39#endif
40    _ISR_lock_Initialize( &context->Lock, "Scheduler" );
41    ( *scheduler->Operations.initialize )( scheduler );
42  }
43}
Note: See TracBrowser for help on using the repository browser.