arm/oneshot: rm sched_[un]lock

Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
hujun5 2023-09-06 21:12:11 +08:00 committed by Xiang Xiao
parent 329e050c30
commit d9cbf84d86
5 changed files with 0 additions and 10 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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