SMP: Implement enter/leave_critical_section

This commit is contained in:
Gregory Nutt
2016-02-13 10:23:16 -06:00
parent 8ac699b63d
commit 97cbd7112f
7 changed files with 87 additions and 34 deletions
+3 -3
View File
@@ -68,10 +68,10 @@
****************************************************************************/
/****************************************************************************
* Name: spin_initialize
* Name: spin_initializer
*
* Description:
* Initialize a spinlock object to its initial, unlocked state.
* Initialize a re-entrant spinlock object to its initial, unlocked state.
*
* Input Parameters:
* lock - A reference to the spinlock object to be initialized.
@@ -81,7 +81,7 @@
*
****************************************************************************/
void spin_initialize(FAR struct spinlock_s *lock)
void spin_initializer(FAR struct spinlock_s *lock)
{
DEBUGASSERT(lock != NULL);