diff --git a/arch/arm/src/stm32/stm32_oneshot.c b/arch/arm/src/stm32/stm32_oneshot.c index 742b4f0480a..9cc4beeb1fa 100644 --- a/arch/arm/src/stm32/stm32_oneshot.c +++ b/arch/arm/src/stm32/stm32_oneshot.c @@ -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 diff --git a/arch/arm/src/stm32h7/stm32_oneshot.c b/arch/arm/src/stm32h7/stm32_oneshot.c index ec6cda575f6..0582b0a44fb 100644 --- a/arch/arm/src/stm32h7/stm32_oneshot.c +++ b/arch/arm/src/stm32h7/stm32_oneshot.c @@ -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 diff --git a/arch/arm/src/stm32l4/stm32l4_oneshot.c b/arch/arm/src/stm32l4/stm32l4_oneshot.c index a59475f96c3..e27aad746d1 100644 --- a/arch/arm/src/stm32l4/stm32l4_oneshot.c +++ b/arch/arm/src/stm32l4/stm32l4_oneshot.c @@ -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 diff --git a/arch/arm/src/stm32wb/stm32wb_oneshot.c b/arch/arm/src/stm32wb/stm32wb_oneshot.c index 2f2ae3349db..d2d78a74d9c 100644 --- a/arch/arm/src/stm32wb/stm32wb_oneshot.c +++ b/arch/arm/src/stm32wb/stm32wb_oneshot.c @@ -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 diff --git a/arch/mips/src/pic32mz/pic32mz_oneshot.c b/arch/mips/src/pic32mz/pic32mz_oneshot.c index e6e530c0869..11cb955f2b9 100644 --- a/arch/mips/src/pic32mz/pic32mz_oneshot.c +++ b/arch/mips/src/pic32mz/pic32mz_oneshot.c @@ -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