source: rtems/cpukit/score/src/schedulerpriorityupdate.c @ f20b3d56

4.115
Last change on this file since f20b3d56 was f20b3d56, checked in by Sebastian Huber <sebastian.huber@…>, on 08/09/13 at 11:34:18

score: Add _Scheduler_priority_Get_ready_queues()

Add and use _Scheduler_priority_Get_ready_queues()

  • Property mode set to 100644
File size: 961 bytes
Line 
1/**
2 * @file
3 *
4 * @brief Update Scheduler Priority
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.com/license/LICENSE.
15 */
16
17#if HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#include <rtems/score/schedulerpriorityimpl.h>
22#include <rtems/score/thread.h>
23
24void _Scheduler_priority_Update(
25  Thread_Control    *the_thread
26)
27{
28  Scheduler_priority_Per_thread *sched_info_of_thread =
29    _Scheduler_priority_Get_scheduler_info( the_thread );
30  Chain_Control *ready_queues = _Scheduler_priority_Get_ready_queues();
31
32  sched_info_of_thread->ready_chain =
33    &ready_queues[ the_thread->current_priority ];
34
35  _Priority_bit_map_Initialize_information(
36    &sched_info_of_thread->Priority_map,
37    the_thread->current_priority
38  );
39}
Note: See TracBrowser for help on using the repository browser.