summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-11-06score: Add _IO_Printf() and _IO_Vprintf()Sebastian Huber1-0/+46
The previous vprintk() implementation had a questionable licence header, lacks support for the 'z' and 'j' format specifiers, is not robust against invalid format specifiers, uses a global variable for output. Replace it with a stripped down version of the FreeBSD kernel kvprintf() function. The new implementation allows a low overhead rtems_snprintf() if necessary. Update #3199. Close #3216.
2017-11-02posix: Use far future for very long timeoutsSebastian Huber1-0/+30
Close #3205.
2017-10-28score: Simplify SMP get lowest scheduledSebastian Huber1-7/+4
There is no need to pass in the order relation since the scheduled threads reside on an already ordered chain. The caller will decide what to do with the lowest scheduled thread.
2017-10-26score: Delete _Scheduler_Thread_set_priority()Sebastian Huber1-12/+0
2017-10-24score: Move thread queue timeout handlingSebastian Huber6-106/+114
Update #3117. Update #3182.
2017-10-24score: Rename function threadq support functionSebastian Huber3-7/+7
Rename _Thread_queue_Context_set_do_nothing_enqueue_callout() into _Thread_queue_Context_set_enqueue_do_nothing_extra(). More _Thread_queue_Context_set_enqueue_*() functions will follow. Update #3117. Update #3182.
2017-10-24score: Add _Thread_Continue()Sebastian Huber1-2/+16
Update #3117. Update #3182.
2017-10-24score: _Watchdog_Per_CPU_lazy_insert_monotonic()Sebastian Huber1-0/+25
Update #3117. Update #3182.
2017-10-24score: Add _Watchdog_Monotonic_from_timespec()Sebastian Huber1-0/+16
Update #3117. Update #3182.
2017-10-24score: Add _Watchdog_Nanoseconds_per_tickSebastian Huber1-0/+8
Move it from the configuration to a separate variable. Update #3117. Update #3182.
2017-10-24score: _Watchdog_Is_far_future_monotonic_timespecSebastian Huber2-0/+16
Update #3117. Update #3182.
2017-10-24score: Add _Watchdog_Is_valid_interval_timespec()Sebastian Huber1-0/+7
Update #3117. Update #3182.
2017-10-24score: _Watchdog_Is_far_future_realtime_timespec()Sebastian Huber1-9/+32
Update #3117. Update #3182.
2017-10-24score: Rename _Watchdog_Ticks_from_*()Sebastian Huber1-3/+3
Rename _Watchdog_Ticks_from_*() to _Watchdog_Realtime_from_*(). This highlights that these routines are used for the CLOCK_REALTIME watchdogs (in contrast to CLOCK_MONOTONIC). Update #3117. Update #3182.
2017-10-24score: Add _Watchdog_Ticks_per_secondSebastian Huber1-0/+8
This value is frequently used. Avoid the function call overhead and the integer division at run-time. Update #3117. Update #3182.
2017-10-24score: Add _Thread_Add_timeout_ticks()Sebastian Huber1-6/+5
Replace _Thread_Timer_insert_monotonic() with _Thread_Add_timeout_ticks(). Update #3117. Update #3182.
2017-10-17score: Rename _Watchdog_Per_CPU_insert_monotonic()Sebastian Huber2-2/+2
Rename _Watchdog_Per_CPU_insert_monotonic() in _Watchdog_Per_CPU_insert_ticks(). Update #3117. Update #3182.
2017-10-17score: Rename watchdog variantsSebastian Huber3-26/+30
Rename PER_CPU_WATCHDOG_RELATIVE in PER_CPU_WATCHDOG_MONOTONIC to highlight the corresponding POSIX CLOCK_MONOTONIC. Rename PER_CPU_WATCHDOG_ABSOLUTE in PER_CPU_WATCHDOG_REALTIME to highlight the corresponding POSIX CLOCK_REALTIME. Update #3117. Update #3182.
2017-10-12score: Remove unused function declarationSebastian Huber1-15/+0
2017-10-12timecounter: Merge FreeBSD change r303382Konstantin Belousov1-7/+14
Hide the boottime and bootimebin globals, provide the getboottime(9) and getboottimebin(9) KPI. Change consumers of boottime to use the KPI. The variables were renamed to avoid shadowing issues with local variables of the same name. Issue is that boottime* should be adjusted from tc_windup(), which requires them to be members of the timehands structure. As a preparation, this commit only introduces the interface. Some uses of boottime were found doubtful, e.g. NLM uses boottime to identify the system boot instance. Arguably the identity should not change on the leap second adjustment, but the commit is about the timekeeping code and the consumers were kept bug-to-bug compatible. Tested by: pho (as part of the bigger patch) Reviewed by: jhb (same) Discussed with: bde Sponsored by: The FreeBSD Foundation MFC after: 1 month X-Differential revision: https://reviews.freebsd.org/D7302 Update #3175.
2017-10-11score: Remove CPU_set_ControlSebastian Huber5-196/+3
Use Processor_mask instead. Update #2514.
2017-10-10score: Add _Thread_queue_Dispatch_disable()Sebastian Huber3-6/+12
2017-10-09score: Change Timestamp_Control to sbintime_tSebastian Huber3-34/+24
The timestamp are based on the uptime. There is no need for a 64-bit seconds part. The signed 32-bit seconds part of the sbintime_t limits the uptime to roughly 68 years. Close #2740.
2017-10-09score: Use struct timespec for TODSebastian Huber1-46/+8
Use the timestamps only for uptime based values. Use struct timespec for the absolute time values (TOD). Update #2740.
2017-10-09score: Simplify _Timestamp_Add_to()Sebastian Huber1-7/+1
Update #2740.
2017-10-05posix: Implement self-contained POSIX mutexSebastian Huber3-2/+37
POSIX mutexes are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3112.
2017-10-05posix: Implement self-contained POSIX condvarSebastian Huber2-2/+0
POSIX condition variables are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3113.
2017-10-05posix: Implement self-contained POSIX rwlocksSebastian Huber4-91/+56
POSIX rwlocks are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3115.
2017-10-05posix: Implement self-contained POSIX barriersSebastian Huber2-2/+0
POSIX barriers are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3114.
2017-10-05posix: Implement self-contained POSIX semaphoresSebastian Huber1-0/+73
For semaphore object pointer and object validation see POSIX_SEMAPHORE_VALIDATE_OBJECT(). Destruction or close of a busy semaphore returns an error status. The object is not flushed. POSIX semaphores are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3116.
2017-10-05posix: Optimize pthread_once_tSebastian Huber1-1/+1
Reduce size of pthread_once_t and make it zero-initialized. Update #3142.
2017-10-05score: Make status codes unconditionalSebastian Huber1-9/+2
The internal status codes encode a Classic rtems_status_code and error codes used by the POSIX and C11/C++11 APIs. In case the POSIX API is disabled, the C11/C++11 support must still work. Close #3167.
2017-09-27score: Simplify red-black tree debug supportSebastian Huber1-8/+0
Make the RBTree_Node layout independent of RTEMS_DEBUG (and all other build configuration options). This allows the use of this structure in Newlib. Update #3112.
2017-09-27score: Rename to _Scheduler_ControlSebastian Huber7-15/+15
Rename struct Scheduler_Control to _Scheduler_Control to allow its use in standard header files, e.g. <pthread.h>. Update #3112.
2017-09-22score: Include missing header fileSebastian Huber1-0/+2
Update #3059.
2017-08-25score: Remove <string.h> include from basedefs.hSebastian Huber1-7/+0
Close #2133.
2017-08-25score: Remove <limits.h> include from basedefs.hSebastian Huber1-7/+0
Close #2132.
2017-08-22heap: Fix integer typesSebastian Huber1-3/+3
Update #3082.
2017-07-31score: Add RTEMS_HAVE_MEMBER_SAME_TYPE()Sebastian Huber2-2/+25
This fixes some "variably modified" warnings and a clang compile error.
2017-07-25INTERNAL_ERROR_ILLEGAL_USE_OF_FLOATING_POINT_UNITSebastian Huber1-1/+2
Add new fatal error INTERNAL_ERROR_ILLEGAL_USE_OF_FLOATING_POINT_UNIT. Update #3077.
2017-07-25score: Add optional _CPU_Context_Destroy()Sebastian Huber1-0/+7
Update #3077.
2017-07-12score: Fix typoSebastian Huber1-1/+1
Update #3059.
2017-07-12Add interrupt vector set/get affinitySebastian Huber1-0/+25
Close #3071.
2017-07-10score: Fix set schedulerSebastian Huber1-5/+13
Ensure that the thread processor affinity fits the new scheduler instance. Update #3059.
2017-07-10score: Add simple affinity support to EDF SMPSebastian Huber2-12/+205
Update #3059.
2017-07-07score: Pass scheduler nodes to processor allocatorSebastian Huber1-18/+14
This allows scheduler implementations to easily access scheduler-specific data. Update #3059.
2017-07-07score: Add scheduler node to set affinity opSebastian Huber3-0/+6
Update #3059.
2017-07-07score: Fix default set affinitySebastian Huber1-4/+3
The set of online processors must be a subset of the thread processor affinity for the schedulers without arbitrary processor affinity support to avoid problems in case of processor addition and removal. Update #3059.
2017-07-07score: Introduce _SMP_Get_online_processors()Sebastian Huber1-0/+9
Update #3059.
2017-07-07score: Use processor mask for set affinitySebastian Huber3-41/+13
Update #3059.