4.115
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 | |
---|
26 | void _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.