source: rtems/cpukit/score/src/schedulerpriorityupdate.c @ 1741a51

4.115
Last change on this file since 1741a51 was 1741a51, checked in by Joel Sherrill <joel.sherrill@…>, on 02/28/11 at 00:10:38

2011-02-27 Jennifer Averett <jennifer.averett@…>

  • score/include/rtems/score/schedulerpriority.h, score/src/schedulerpriority.c, score/src/schedulerpriorityextract.c, score/src/schedulerpriorityupdate.c: Formatting.
  • Property mode set to 100644
File size: 1.0 KB
Line 
1/*
2 *  Scheduler Handler
3 *
4 *  Copyright (C) 2010 Gedare Bloom.
5 *  Copyright (C) 2011 On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  $Id$
12 */
13
14#if HAVE_CONFIG_H
15#include "config.h"
16#endif
17
18#include <rtems/system.h>
19#include <rtems/config.h>
20#include <rtems/score/priority.h>
21#include <rtems/score/prioritybitmap.h>
22#include <rtems/score/scheduler.h>
23#include <rtems/score/schedulerpriority.h>
24#include <rtems/score/thread.h>
25
26void _Scheduler_priority_Update(
27  Thread_Control    *the_thread
28)
29{
30  Scheduler_priority_Per_thread *sched_info;
31  Chain_Control                 *rq;
32
33  sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info;
34  rq         = (Chain_Control *) _Scheduler.information;
35
36  sched_info->ready_chain = &rq[ the_thread->current_priority ];
37
38  _Priority_bit_map_Initialize_information(
39    &sched_info->Priority_map,
40    the_thread->current_priority
41  );
42}
Note: See TracBrowser for help on using the repository browser.