diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-01 15:42:27 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-01 15:44:19 +0100 |
commit | 9e4f21b927e8a81df8044806e88128388911e123 (patch) | |
tree | b0b11f769a539837667f53829c01ebdeea6356b0 /cpukit/score | |
parent | psxmsgq03: Adjust test case (diff) | |
download | rtems-9e4f21b927e8a81df8044806e88128388911e123.tar.bz2 |
score: Optimize per-processor data placement
Only align per-processor data in SMP configurations.
Diffstat (limited to 'cpukit/score')
-rw-r--r-- | cpukit/score/src/wkspace.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/score/src/wkspace.c b/cpukit/score/src/wkspace.c index 0834438dd1..d363b8d3b2 100644 --- a/cpukit/score/src/wkspace.c +++ b/cpukit/score/src/wkspace.c @@ -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; |