This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new d9cbf84d86 arm/oneshot: rm sched_[un]lock
d9cbf84d86 is described below
commit d9cbf84d8645a6901f51326943501cd39a4f64fc
Author: hujun5 <[email protected]>
AuthorDate: Wed Sep 6 21:12:11 2023 +0800
arm/oneshot: rm sched_[un]lock
Signed-off-by: hujun5 <[email protected]>
---
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