diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-04-11 13:47:50 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-04-12 09:44:44 +0200 |
commit | e97b7c9a7af2f4e19a8bdeaf13033617f8c4c2b6 (patch) | |
tree | 579598cfce50f24f2d7450e0c54f1eea6de0a023 /cpukit/score/src/userextaddset.c | |
parent | score: Add _ISR_lock_Set_name() (diff) | |
download | rtems-e97b7c9a7af2f4e19a8bdeaf13033617f8c4c2b6.tar.bz2 |
score: Use an ISR lock for Per_CPU_Control::Lock
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.
Diffstat (limited to 'cpukit/score/src/userextaddset.c')
-rw-r--r-- | cpukit/score/src/userextaddset.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cpukit/score/src/userextaddset.c b/cpukit/score/src/userextaddset.c index 585712e043..2b13dfad62 100644 --- a/cpukit/score/src/userextaddset.c +++ b/cpukit/score/src/userextaddset.c @@ -41,17 +41,15 @@ void _User_extensions_Add_set( */ if ( the_extension->Callouts.thread_switch != NULL ) { - ISR_Level level; - the_extension->Switch.thread_switch = the_extension->Callouts.thread_switch; - _Per_CPU_Acquire_all( level ); + _Per_CPU_Acquire_all( &lock_context ); _Chain_Initialize_node( &the_extension->Switch.Node ); _Chain_Append_unprotected( &_User_extensions_Switches_list, &the_extension->Switch.Node ); - _Per_CPU_Release_all( level ); + _Per_CPU_Release_all( &lock_context ); } } |