Changeset b5bdecf in rtems


Ignore:
Timestamp:
Jan 18, 2019, 11:54:05 AM (5 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
41310c02
Parents:
93e3b341
git-author:
Sebastian Huber <sebastian.huber@…> (01/18/19 11:54:05)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/18/19 12:33:18)
Message:

score: Avoid internal API and use ISR lock

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/smpmulticastaction.c

    r93e3b341 rb5bdecf  
    1212
    1313#include <rtems/score/smpimpl.h>
    14 #include <rtems/score/smplock.h>
     14#include <rtems/score/isrlock.h>
    1515#include <rtems/score/chainimpl.h>
    1616#include <rtems/score/sysstate.h>
     
    2525
    2626typedef struct {
    27   SMP_lock_Control Lock;
     27  ISR_lock_Control Lock;
    2828  Chain_Control    Actions;
    2929} SMP_Multicast_context;
    3030
    3131static SMP_Multicast_context _SMP_Multicast = {
    32   .Lock = SMP_LOCK_INITIALIZER( "SMP Multicast Action" ),
     32  .Lock = ISR_LOCK_INITIALIZER( "SMP Multicast Action" ),
    3333  .Actions = CHAIN_INITIALIZER_EMPTY( _SMP_Multicast.Actions )
    3434};
     
    3636void _SMP_Multicast_actions_process( void )
    3737{
    38   SMP_lock_Context      lock_context;
     38  ISR_lock_Context      lock_context;
    3939  uint32_t              cpu_self_index;
    4040  SMP_Multicast_action *node;
    4141  SMP_Multicast_action *next;
    4242
    43   _SMP_lock_ISR_disable_and_acquire( &_SMP_Multicast.Lock, &lock_context );
     43  _ISR_lock_ISR_disable_and_acquire( &_SMP_Multicast.Lock, &lock_context );
    4444  cpu_self_index = _SMP_Get_current_processor();
    4545  node = (SMP_Multicast_action *) _Chain_First( &_SMP_Multicast.Actions );
     
    6262  }
    6363
    64   _SMP_lock_Release_and_ISR_enable( &_SMP_Multicast.Lock, &lock_context );
     64  _ISR_lock_Release_and_ISR_enable( &_SMP_Multicast.Lock, &lock_context );
    6565}
    6666
     
    9898  SMP_Multicast_action node;
    9999  Processor_mask       targets;
    100   SMP_lock_Context     lock_context;
     100  ISR_lock_Context     lock_context;
    101101  uint32_t             i;
    102102
     
    124124  _Atomic_Store_ulong( &node.done, 0, ATOMIC_ORDER_RELAXED );
    125125
    126   _SMP_lock_ISR_disable_and_acquire( &_SMP_Multicast.Lock, &lock_context );
     126  _ISR_lock_ISR_disable_and_acquire( &_SMP_Multicast.Lock, &lock_context );
    127127  _Chain_Prepend_unprotected( &_SMP_Multicast.Actions, &node.Node );
    128   _SMP_lock_Release_and_ISR_enable( &_SMP_Multicast.Lock, &lock_context );
     128  _ISR_lock_Release_and_ISR_enable( &_SMP_Multicast.Lock, &lock_context );
    129129
    130130  _SMP_Send_message_multicast( &targets, SMP_MESSAGE_MULTICAST_ACTION );
Note: See TracChangeset for help on using the changeset viewer.