diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-03-18 14:03:01 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-03-18 15:36:58 +0100 |
commit | 5a5fb3b9d6d99d6751d129458217f1a3b5b85ff8 (patch) | |
tree | 9f2296b7e4abaa0da454caea84e2fcbc0eb49fd2 /cpukit/score/src/corespinlock.c | |
parent | score: Add _Objects_Get_by_name() (diff) | |
download | rtems-5a5fb3b9d6d99d6751d129458217f1a3b5b85ff8.tar.bz2 |
score: Avoid Giant lock for CORE spinlock
Use an ISR lock to protect the spinlock state. Remove empty attributes.
Update #2555.
Diffstat (limited to 'cpukit/score/src/corespinlock.c')
-rw-r--r-- | cpukit/score/src/corespinlock.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/cpukit/score/src/corespinlock.c b/cpukit/score/src/corespinlock.c deleted file mode 100644 index b84eb2e14e..0000000000 --- a/cpukit/score/src/corespinlock.c +++ /dev/null @@ -1,37 +0,0 @@ -/** - * @file - * - * @brief Initialize a Spinlock - * - * @ingroup ScoreSpinlock - */ - -/* - * COPYRIGHT (c) 1989-2006. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include <rtems/system.h> -#include <rtems/score/corespinlockimpl.h> -#include <rtems/score/thread.h> - -void _CORE_spinlock_Initialize( - CORE_spinlock_Control *the_spinlock, - CORE_spinlock_Attributes *the_spinlock_attributes -) -{ - - the_spinlock->Attributes = *the_spinlock_attributes; - - the_spinlock->lock = 0; - the_spinlock->users = 0; - the_spinlock->holder = 0; -} |