From d9cbf84d8645a6901f51326943501cd39a4f64fc Mon Sep 17 00:00:00 2001 From: hujun5 Date: Wed, 6 Sep 2023 21:12:11 +0800 Subject: [PATCH] arm/oneshot: rm sched_[un]lock Signed-off-by: hujun5 --- arch/arm/src/stm32/stm32_oneshot.c | 2 -- arch/arm/src/stm32h7/stm32_oneshot.c | 2 -- arch/arm/src/stm32l4/stm32l4_oneshot.c | 2 -- arch/arm/src/stm32wb/stm32wb_oneshot.c | 2 -- arch/mips/src/pic32mz/pic32mz_oneshot.c | 2 -- 5 files changed, 10 deletions(-) diff --git a/arch/arm/src/stm32/stm32_oneshot.c b/arch/arm/src/stm32/stm32_oneshot.c index 742b4f0480..9cc4beeb1f 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 ec6cda575f..0582b0a44f 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 a59475f96c..e27aad746d 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 2f2ae3349d..d2d78a74d9 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 e6e530c086..11cb955f2b 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