Changeset e358088 in rtems for cpukit/score/Makefile.am


Ignore:
Timestamp:
May 28, 2013, 8:54:46 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
bbed1866
Parents:
7c5ceea5
git-author:
Sebastian Huber <sebastian.huber@…> (05/28/13 08:54:46)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/31/13 13:20:32)
Message:

smp: New SMP lock API

Move the SMP lock implementation to the CPU port. An optimal SMP lock
implementation is highly architecture dependent. For example the memory
models may be fundamentally different.

The new SMP lock API has a flaw. It does not provide the ability to use
a local context for acquire and release pairs. Such a context is
necessary to implement for example the Mellor-Crummey and Scott (MCS)
locks. The SMP lock is currently used in _Thread_Disable_dispatch() and
_Thread_Enable_dispatch() and makes them to a giant lock acquire and
release. Since these functions do not pass state information via a
local context there is currently no use case for such a feature.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/Makefile.am

    r7c5ceea5 re358088  
    136136
    137137if HAS_SMP
    138 libscore_a_SOURCES += src/isrsmp.c src/smp.c src/smplock.c \
     138libscore_a_SOURCES += src/isrsmp.c src/smp.c \
    139139    src/schedulersimplesmpblock.c src/schedulersimplesmpschedule.c \
    140140    src/schedulersimplesmpunblock.c src/schedulersimplesmptick.c
Note: See TracChangeset for help on using the changeset viewer.