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

4.115
Last change on this file since f0bfd7d8 was f0bfd7d8, checked in by Sebastian Huber <sebastian.huber@…>, on 07/24/13 at 11:25:57

score: Create prioritybitmap implementation header

Move implementation specific parts of prioritybitmap.h and
prioritybitmap.inl into new header file prioritybitmapimpl.h. The
prioritybitmap.h contains now only the application visible API.

Move content of bitfield.h into prioritybitmapimpl.h.

  • Property mode set to 100644
File size: 958 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;
29  Chain_Control                 *rq;
30
31  sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info;
32  rq         = (Chain_Control *) _Scheduler.information;
33
34  sched_info->ready_chain = &rq[ the_thread->current_priority ];
35
36  _Priority_bit_map_Initialize_information(
37    &sched_info->Priority_map,
38    the_thread->current_priority
39  );
40}
Note: See TracBrowser for help on using the repository browser.