From 3283f54c7a0444b2e51ec79a4da57e7871528f05 Mon Sep 17 00:00:00 2001 From: xqyjlj Date: Wed, 25 Oct 2023 20:31:25 +0800 Subject: 🎈 perf: perf rt_hw_interrupt_disable/enable (#8042) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Shell Co-authored-by: Shell --- include/rtatomic.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'include/rtatomic.h') diff --git a/include/rtatomic.h b/include/rtatomic.h index 9f361fd925..5363ee5426 100644 --- a/include/rtatomic.h +++ b/include/rtatomic.h @@ -27,13 +27,6 @@ void rt_hw_atomic_flag_clear(volatile rt_atomic_t *ptr); rt_atomic_t rt_hw_atomic_flag_test_and_set(volatile rt_atomic_t *ptr); rt_atomic_t rt_hw_atomic_compare_exchange_strong(volatile rt_atomic_t *ptr, rt_atomic_t *expected, rt_atomic_t desired); -/* To detect stdatomic */ -#if !defined(RT_USING_HW_ATOMIC) && !defined(RT_USING_STDC_ATOMIC) -#if defined(__GNUC__) && defined(RT_USING_LIBC) && !defined(__STDC_NO_ATOMICS__) -#define RT_USING_STDC_ATOMIC -#endif /* __GNUC__ && .. */ -#endif /* !RT_USING_HW_ATOMIC && !RT_USING_STDC_ATOMIC */ - #if defined(RT_USING_HW_ATOMIC) #define rt_atomic_load(ptr) rt_hw_atomic_load(ptr) #define rt_atomic_store(ptr, v) rt_hw_atomic_store(ptr, v) -- cgit v1.3.1