summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spintrcritical23 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* testsuite: Use printk for all test output where possible.Chris Johns2017-10-231-0/+2
| | | | | | | | | | - Remove the printf support leaving the direct printk support configured with TESTS_USE_PRINTK and all other output goes via a buffered vsniprintf call to printk. - Control the test's single init for functions and global data with TEST_INIT and not CONFIGURE_INIT. They are now separate. Updates #3170.
* sptests/spintrcritical23: Explicity set schedulerSebastian Huber2016-06-241-0/+3
| | | | | This test uses scheduler-specific data structures, thus it must use the right scheduler.
* score: Add thread priority to scheduler nodesSebastian Huber2016-06-221-48/+9
| | | | | | | | | | | | | | | | | | The thread priority is manifest in two independent areas. One area is the user visible thread priority along with a potential thread queue. The other is the scheduler. Currently, a thread priority update via _Thread_Change_priority() first updates the user visble thread priority and the thread queue, then the scheduler is notified if necessary. The priority is passed to the scheduler via a local variable. A generation counter ensures that the scheduler discards out-of-date priorities. This use of a local variable ties the update in these two areas close together. For later enhancements and the OMIP locking protocol implementation we need more flexibility. Add a thread priority information block to Scheduler_Node and synchronize priority value updates via a sequence lock on SMP configurations. Update #2556.
* Replace *_Get_interrupt_disable() with *_Get()Sebastian Huber2016-05-201-1/+1
| | | | | Uniformly use *_Get() to get an object by identifier with a lock context.
* testsuites: Replace _Thread_Get()Sebastian Huber2016-05-201-5/+4
| | | | | | | Replace _Thread_Get() with _Thread_Get_interrupt_disable() to avoid the Giant lock. Update #2555.
* score: Add Thread_queue_OperationsSebastian Huber2015-05-191-2/+2
| | | | | | | | Replace the Thread_Priority_control with more general Thread_queue_Operations which will be used for generic priority change, timeout, signal and wait queue operations in the future. Update #2273.
* score: Add thread priority change handlerSebastian Huber2015-03-241-2/+2
| | | | | | | | | | Since the thread current priority change and thread queue requeue is performed in one critical section it is possible to simplify the thread queue requeue procedure. Add a thread queue agnostic thread priority change handler so that we are able to use alternative thread queue implementations. Update #2273.
* sptests/spintrcritical23: Fix warningsSebastian Huber2015-03-211-8/+10
|
* Replace www.rtems.com with www.rtems.orgSebastian Huber2015-03-201-1/+1
|
* score: Fix _Thread_Change_priority()Sebastian Huber2015-03-204-0/+223
Atomically update the current priority of a thread and the wait queue. Serialize the scheduler update in a separate critical section with a generation number. New test sptests/spintrcritical23. Close #2310.