source: rtems/cpukit/score/src/schedulerpriorityblock.c @ eea7c937

4.115
Last change on this file since eea7c937 was e5ca54c9, checked in by Sebastian Huber <sebastian.huber@…>, on 08/07/13 at 19:19:55

score: PR2136: Fix _Thread_Change_priority()

Add call to _Scheduler_Schedule() in missing path after
_Thread_Set_transient() in _Thread_Change_priority(). See also
sptests/spintrcritical19.

Add thread parameter to _Scheduler_Schedule(). This parameter is
currently unused but may be used in future SMP schedulers.

Do heir selection in _Scheduler_Schedule(). Use
_Scheduler_Update_heir() for this in the particular scheduler
implementation.

Add and use _Scheduler_Generic_block().

  • Property mode set to 100644
File size: 682 bytes
Line 
1/**
2 * @file
3 *
4 * @brief Scheduler Priority Block
5 * @ingroup ScoreScheduler
6 */
7
8/*
9 *  Scheduler Handler
10 *
11 *  Copyright (C) 2010 Gedare Bloom.
12 *  Copyright (C) 2011 On-Line Applications Research Corporation (OAR).
13 *
14 *  The license and distribution terms for this file may be
15 *  found in the file LICENSE in this distribution or at
16 *  http://www.rtems.com/license/LICENSE.
17 */
18
19#if HAVE_CONFIG_H
20#include "config.h"
21#endif
22
23#include <rtems/score/schedulerpriorityimpl.h>
24
25void _Scheduler_priority_Block(
26  Thread_Control   *the_thread
27)
28{
29  _Scheduler_Generic_block(
30    _Scheduler_priority_Ready_queue_extract,
31    _Scheduler_priority_Schedule_body,
32    the_thread
33  );
34}
Note: See TracBrowser for help on using the repository browser.