diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-04-20 08:52:52 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-04-21 08:25:31 +0200 |
commit | 3bf4a9fac441f90ccb79da69c67974d903da4c1a (patch) | |
tree | dfe9f5a2e0f5ee28d3c0ab346dcfe7a4d4b5ae9a /cpukit/score/src | |
parent | score: _Objects_Get_isr_disable() (diff) | |
download | rtems-3bf4a9fac441f90ccb79da69c67974d903da4c1a.tar.bz2 |
score: _Objects_Get_isr_disable()
Do not disable thread dispatching and do not acquire the Giant lock.
This makes it possible to use this object get variant for fine grained
locking.
Update #2273.
Diffstat (limited to 'cpukit/score/src')
-rw-r--r-- | cpukit/score/src/objectgetisr.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/cpukit/score/src/objectgetisr.c b/cpukit/score/src/objectgetisr.c index 4feb7aaffb..b1212ac9c7 100644 --- a/cpukit/score/src/objectgetisr.c +++ b/cpukit/score/src/objectgetisr.c @@ -33,18 +33,12 @@ Objects_Control *_Objects_Get_isr_disable( index = id - information->minimum_id + 1; if ( information->maximum >= index ) { -#if defined(RTEMS_SMP) - _Thread_Disable_dispatch(); -#endif _ISR_lock_ISR_disable( lock_context ); if ( (the_object = information->local_table[ index ]) != NULL ) { *location = OBJECTS_LOCAL; return the_object; } _ISR_lock_ISR_enable( lock_context ); -#if defined(RTEMS_SMP) - _Thread_Enable_dispatch(); -#endif *location = OBJECTS_ERROR; return NULL; } |