mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 13:18:50 +08:00
arm/oneshot: rm sched_[un]lock
Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
parent
329e050c30
commit
d9cbf84d86
5 changed files with 0 additions and 10 deletions
|
@ -127,7 +127,6 @@ static inline int stm32_allocate_handler(struct stm32_oneshot_s *oneshot)
|
|||
|
||||
/* Search for an unused handler */
|
||||
|
||||
sched_lock();
|
||||
for (i = 0; i < CONFIG_STM32_ONESHOT_MAXTIMERS; i++)
|
||||
{
|
||||
/* Is this handler available? */
|
||||
|
@ -143,7 +142,6 @@ static inline int stm32_allocate_handler(struct stm32_oneshot_s *oneshot)
|
|||
}
|
||||
}
|
||||
|
||||
sched_unlock();
|
||||
return ret;
|
||||
|
||||
#else
|
||||
|
|
|
@ -127,7 +127,6 @@ static inline int stm32_allocate_handler(struct stm32_oneshot_s *oneshot)
|
|||
|
||||
/* Search for an unused handler */
|
||||
|
||||
sched_lock();
|
||||
for (i = 0; i < CONFIG_STM32H7_ONESHOT_MAXTIMERS; i++)
|
||||
{
|
||||
/* Is this handler available? */
|
||||
|
@ -143,7 +142,6 @@ static inline int stm32_allocate_handler(struct stm32_oneshot_s *oneshot)
|
|||
}
|
||||
}
|
||||
|
||||
sched_unlock();
|
||||
return ret;
|
||||
|
||||
#else
|
||||
|
|
|
@ -127,7 +127,6 @@ static inline int stm32l4_allocate_handler(struct stm32l4_oneshot_s *oneshot)
|
|||
|
||||
/* Search for an unused handler */
|
||||
|
||||
sched_lock();
|
||||
for (i = 0; i < CONFIG_STM32L4_ONESHOT_MAXTIMERS; i++)
|
||||
{
|
||||
/* Is this handler available? */
|
||||
|
@ -143,7 +142,6 @@ static inline int stm32l4_allocate_handler(struct stm32l4_oneshot_s *oneshot)
|
|||
}
|
||||
}
|
||||
|
||||
sched_unlock();
|
||||
return ret;
|
||||
|
||||
#else
|
||||
|
|
|
@ -127,7 +127,6 @@ static inline int stm32wb_allocate_handler(struct stm32wb_oneshot_s *oneshot)
|
|||
|
||||
/* Search for an unused handler */
|
||||
|
||||
sched_lock();
|
||||
for (i = 0; i < CONFIG_STM32WB_ONESHOT_MAXTIMERS; i++)
|
||||
{
|
||||
/* Is this handler available? */
|
||||
|
@ -143,7 +142,6 @@ static inline int stm32wb_allocate_handler(struct stm32wb_oneshot_s *oneshot)
|
|||
}
|
||||
}
|
||||
|
||||
sched_unlock();
|
||||
return ret;
|
||||
|
||||
#else
|
||||
|
|
|
@ -126,7 +126,6 @@ static inline int pic32mz_allocate_handler(struct pic32mz_oneshot_s *oneshot)
|
|||
|
||||
/* Search for an unused handler */
|
||||
|
||||
sched_lock();
|
||||
for (i = 0; i < CONFIG_PIC32MZ_ONESHOT_MAXTIMERS; i++)
|
||||
{
|
||||
/* Is this handler available? */
|
||||
|
@ -142,7 +141,6 @@ static inline int pic32mz_allocate_handler(struct pic32mz_oneshot_s *oneshot)
|
|||
}
|
||||
}
|
||||
|
||||
sched_unlock();
|
||||
return ret;
|
||||
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue