mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08:00
arm/oneshot: rm sched_[un]lock
Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
@@ -127,7 +127,6 @@ static inline int stm32_allocate_handler(struct stm32_oneshot_s *oneshot)
|
|||||||
|
|
||||||
/* Search for an unused handler */
|
/* Search for an unused handler */
|
||||||
|
|
||||||
sched_lock();
|
|
||||||
for (i = 0; i < CONFIG_STM32_ONESHOT_MAXTIMERS; i++)
|
for (i = 0; i < CONFIG_STM32_ONESHOT_MAXTIMERS; i++)
|
||||||
{
|
{
|
||||||
/* Is this handler available? */
|
/* Is this handler available? */
|
||||||
@@ -143,7 +142,6 @@ static inline int stm32_allocate_handler(struct stm32_oneshot_s *oneshot)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sched_unlock();
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -127,7 +127,6 @@ static inline int stm32_allocate_handler(struct stm32_oneshot_s *oneshot)
|
|||||||
|
|
||||||
/* Search for an unused handler */
|
/* Search for an unused handler */
|
||||||
|
|
||||||
sched_lock();
|
|
||||||
for (i = 0; i < CONFIG_STM32H7_ONESHOT_MAXTIMERS; i++)
|
for (i = 0; i < CONFIG_STM32H7_ONESHOT_MAXTIMERS; i++)
|
||||||
{
|
{
|
||||||
/* Is this handler available? */
|
/* Is this handler available? */
|
||||||
@@ -143,7 +142,6 @@ static inline int stm32_allocate_handler(struct stm32_oneshot_s *oneshot)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sched_unlock();
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -127,7 +127,6 @@ static inline int stm32l4_allocate_handler(struct stm32l4_oneshot_s *oneshot)
|
|||||||
|
|
||||||
/* Search for an unused handler */
|
/* Search for an unused handler */
|
||||||
|
|
||||||
sched_lock();
|
|
||||||
for (i = 0; i < CONFIG_STM32L4_ONESHOT_MAXTIMERS; i++)
|
for (i = 0; i < CONFIG_STM32L4_ONESHOT_MAXTIMERS; i++)
|
||||||
{
|
{
|
||||||
/* Is this handler available? */
|
/* Is this handler available? */
|
||||||
@@ -143,7 +142,6 @@ static inline int stm32l4_allocate_handler(struct stm32l4_oneshot_s *oneshot)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sched_unlock();
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -127,7 +127,6 @@ static inline int stm32wb_allocate_handler(struct stm32wb_oneshot_s *oneshot)
|
|||||||
|
|
||||||
/* Search for an unused handler */
|
/* Search for an unused handler */
|
||||||
|
|
||||||
sched_lock();
|
|
||||||
for (i = 0; i < CONFIG_STM32WB_ONESHOT_MAXTIMERS; i++)
|
for (i = 0; i < CONFIG_STM32WB_ONESHOT_MAXTIMERS; i++)
|
||||||
{
|
{
|
||||||
/* Is this handler available? */
|
/* Is this handler available? */
|
||||||
@@ -143,7 +142,6 @@ static inline int stm32wb_allocate_handler(struct stm32wb_oneshot_s *oneshot)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sched_unlock();
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -126,7 +126,6 @@ static inline int pic32mz_allocate_handler(struct pic32mz_oneshot_s *oneshot)
|
|||||||
|
|
||||||
/* Search for an unused handler */
|
/* Search for an unused handler */
|
||||||
|
|
||||||
sched_lock();
|
|
||||||
for (i = 0; i < CONFIG_PIC32MZ_ONESHOT_MAXTIMERS; i++)
|
for (i = 0; i < CONFIG_PIC32MZ_ONESHOT_MAXTIMERS; i++)
|
||||||
{
|
{
|
||||||
/* Is this handler available? */
|
/* Is this handler available? */
|
||||||
@@ -142,7 +141,6 @@ static inline int pic32mz_allocate_handler(struct pic32mz_oneshot_s *oneshot)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sched_unlock();
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user