mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-23 16:02:05 +08:00
score: Optimize per-processor data placement
Only align per-processor data in SMP configurations.
This commit is contained in:
@@ -37,7 +37,14 @@
|
||||
|
||||
RTEMS_LINKER_RWSET(
|
||||
_Per_CPU_Data,
|
||||
RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES ) char
|
||||
#if defined(RTEMS_SMP)
|
||||
/*
|
||||
* In SMP configurations, prevent false cache line sharing of per-processor
|
||||
* data with a proper alignment.
|
||||
*/
|
||||
RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
|
||||
#endif
|
||||
char
|
||||
);
|
||||
|
||||
Heap_Control _Workspace_Area;
|
||||
|
||||
Reference in New Issue
Block a user