mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 04:16:35 +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 */
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user