summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-05-20score: Add _Per_CPU_Add_job()Sebastian Huber1-16/+21
2019-05-20score: Move per-processor job data structuresSebastian Huber1-69/+18
This enables re-use for other purposes, e.g. replacement for SMP_MESSAGE_TEST.
2019-05-20score: Simplify _SMP_Multicast_action()Sebastian Huber1-20/+5
Move resposibility to disable thread dispatching to the caller of _SMP_Multicast_action(). Using an interrupt disable for this purpose is questionable.
2019-05-20score: Add _SMP_Othercast_action()Sebastian Huber1-0/+12
2019-05-20score: Add _SMP_Broadcast_action()Sebastian Huber1-4/+8
2019-05-20score: Use dedicated lock for per-CPU jobsSebastian Huber1-12/+12
2019-05-15score: Fix per-CPU job done handlingSebastian Huber1-4/+14
2019-04-12score: More robust _SMP_Multicast_action()Sebastian Huber1-2/+12
If the caller already disabled interrupts, then do not disable thread dispatching. Calling _SMP_Multicast_action() with interrupts disabled is a questionable use case.
2019-04-12score: Remove _SMP_Before_multitasking_action()Sebastian Huber2-96/+0
Use _SMP_Multicast_action() instead.
2019-04-12score: Improve _SMP_Multicast_action()Sebastian Huber2-7/+22
Let it work during system initialization.
2019-04-12score: Rework SMP multicast actionSebastian Huber2-76/+174
Use a FIFO list of jobs per processor to carry out the SMP multicast action. Use a done indicator per job to reduce the bus traffic a bit.
2019-04-12score: Use processor mask in _SMP_Multicast_actionSebastian Huber1-17/+7
Processor_mask is the internal data type to deal with processor sets.
2019-04-12score: Use an ISR lock for Per_CPU_Control::LockSebastian Huber5-22/+23
The use of a hand crafted lock for Per_CPU_Control::Lock was necessary at some point in the SMP support development, but it is no longer justified.
2019-04-12score: Add _ISR_lock_Set_name()Sebastian Huber1-2/+3
Add _ISR_lock_Set_name() to optimize the initialization of zero-initialized locks.
2019-04-11score: Rename _SMP_Get_processor_count()Sebastian Huber5-29/+39
Rename _SMP_Get_processor_count() in _SMP_Get_processor_maximum() to be in line with the API level rtems_scheduler_get_processor_maximum(). Update #3732.
2019-04-11score: Rename _SMP_Processor_countSebastian Huber1-2/+2
Rename _SMP_Processor_count in _SMP_Processor_maximum to be in line with the API level rtems_scheduler_get_processor_maximum(). Update #3732.
2019-04-09Remove superfluous run-time checkSebastian Huber1-4/+1
The _Objects_Information_table[ the_api ] is never NULL for a valid API index.
2019-04-04doxygen: Rename Score* groups in RTEMSScore*Sebastian Huber156-156/+156
Update #3706
2019-03-26score: Rename ScoreCPU Doxygen groupSebastian Huber1-1/+0
Update #3706.
2019-03-14Remove superfluous <rtems/system.h> includesSebastian Huber21-21/+0
2019-03-12coremsgseize.c: Fix spelling errorJoel Sherrill1-1/+1
2019-03-01score: Fix _Scheduler_EDF_Cancel_job()Sebastian Huber1-2/+4
Remove the priority node only in case it is active.
2019-02-28Remove explicit file names from @fileSebastian Huber4-4/+4
This makes the @file documentation independent of the actual file name. Update #3707.
2019-02-18score: Avoid some deadlocks in _Once()Sebastian Huber1-43/+74
Recursive usage of the same pthread_once_t results now in a deadlock. Previously, an error of EINVAL was returned. This usage scenario is invalid according to the POSIX pthread_once() specification. Close #3334.
2019-02-07score: Fix plain priority thread queues (SMP)Sebastian Huber1-0/+8
We must add/remove the priority queue to the FIFO of priority queues.
2019-01-18score: Avoid internal API and use ISR lockSebastian Huber1-9/+9
2019-01-09Adjust interrupt mode tests for some CPU portsSebastian Huber2-2/+4
In case the robust thread dispatch is enabled by the CPU port, then the interrupt level must not be changed through the task mode. Update #3000.
2019-01-09Separate task mode checksSebastian Huber1-8/+11
Update #3000.
2019-01-07score: Remove superfluous include from chainimpl.hSebastian Huber1-0/+1
2018-12-18score: Fix per-CPU data allocationSebastian Huber1-26/+44
Allocate the per-CPU data for secondary processors directly from the heap areas before heap initialization and not via _Workspace_Allocate_aligned(). This avoids dependency on the workspace allocator. It fixes also a problem on some platforms (e.g. QorIQ) where at this early point in the system initialization the top of the RAM is used by low-level startup code on secondary processors (boot pages). Update #3507.
2018-12-14score: Static Objects_Information initializationSebastian Huber13-190/+98
Statically allocate the objects information together with the initial set of objects either via <rtems/confdefs.h>. Provide default object informations with zero objects via librtemscpu.a. This greatly simplifies the workspace size estimate. RTEMS applications which do not use the unlimited objects option are easier to debug since all objects reside now in statically allocated objects of the right types. Close #3621.
2018-12-14score: Remove Objects_Information::auto_extendSebastian Huber4-25/+29
Use Objects_Information::objects_per_block to provide this information. Add and use _Objects_Is_auto_extend(). Update #3621.
2018-12-07score: Remove Objects_Information::the_apiSebastian Huber2-14/+12
Remove Objects_Information::the_class. This information is already contained in Objects_Information::maximum_id. Update #3621.
2018-12-07score: Remove Objects_Information::maximumSebastian Huber9-50/+50
This information is already present in Objects_Information::maximum_id. Add and use _Objects_Get_maximum_index(). Update #3621.
2018-12-07score: Optimize object lookupSebastian Huber11-65/+44
Use the maximum ID for the ID to object translation. Using the maximum ID gets rid of an additional load from the object information in _Objects_Get(). In addition, object lookups fail for every ID in case the object information is cleared to zero. This makes it a bit more robust during system startup (see new tests in spconfig02). The local table no longer needs a NULL pointer entry at array index zero. Adjust all the object iteration loops accordingly. Remove Objects_Information::minimum_id since it contains only redundant information. Add _Objects_Get_minimum_id() to get the minimum ID. Update #3621.
2018-12-07score: Rename Objects_Information::allocation_sizeSebastian Huber5-33/+45
Rename Objects_Information::allocation_size in Objects_Information::objects_per_block. Adjust integer types in _Objects_Shrink_information() and _Objects_Free(). Update #3621.
2018-12-07score: Rename Objects_Information::sizeSebastian Huber4-6/+6
Rename Objects_Information::size to Objects_Information::object_size. Change its type from size_t to uint16_t and move it to reduce the size of Objects_Information. Update #3621.
2018-12-07score: Remove Objects_Information::is_stringSebastian Huber7-31/+29
Use Objects_Information::name_length to store this information. Update #3621.
2018-12-07score: Remove dead codeSebastian Huber1-16/+0
Update #3621.
2018-11-26score: <rtems/score/smplockstats.h>Sebastian Huber1-7/+16
Remove <rtems/score/chainimpl.h> include from <rtems/score/smplockstats.h>. Close #3598.
2018-11-21score: Simplify _Workspace_String_duplicate()Sebastian Huber1-6/+7
2018-11-14or1k: Support GCC 9Sebastian Huber1-1/+2
Close #3602.
2018-11-12score: Introduce <rtems/score/watchdogticks.h>Sebastian Huber1-1/+1
Separate the definitions related to watchdog ticks from the watchdog structures. Update #3598.
2018-11-08score: Rename interrupt stack symbolsSebastian Huber1-1/+1
Rename * _Configuration_Interrupt_stack_area_begin in _ISR_Stack_area_begin, * _Configuration_Interrupt_stack_area_end in _ISR_Stack_area_end, and * _Configuration_Interrupt_stack_size in _ISR_Stack_size. Move definitions to <rtems/score/isr.h>. The new names are considerable shorter and in the right namespace. Update #3459.
2018-11-06score: Optimize Objects_InformationSebastian Huber1-64/+52
Reduce structure internal padding. Group members used by _Objects_Get() together. Reduce size of some members. Format and simplify _Objects_Extend_information().
2018-10-29posix: Provide threads by defaultSebastian Huber3-20/+0
Update #2514.
2018-10-29posix: Split posix_api_configuration_tableSebastian Huber1-1/+2
Use separate configuration variables to avoid false dependencies. Update #2514.
2018-10-29Remove RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMESSebastian Huber7-49/+32
Enable support for string objects names unconditionally. Add const qualifier throughout. Split _Objects_Namespace_remove() into _Objects_Namespace_remove_u32() and _Objects_Namespace_remove_string() to avoid an unnecessary dependency on _Workspace_Free(). Update #2514.
2018-10-29score: Remove bogus thread object name supportSebastian Huber1-8/+4
Update #2514.
2018-09-21Remove INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALLSebastian Huber1-4/+0
The configured interrupt stack size (CONFIGURE_INTERRUPT_STACK_SIZE) is checked against the minimum task stack size. The minium tasks task stack size is also a configuration option (CONFIGURE_MINIMUM_TASK_STACK_SIZE). So, this check does not really help in case of configuration errors. In addition, the interrupt stack is also re-used as the initialization stack in most BSPs. It is probably better to use a stack checker to detect problems. Update #3459.