summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShell <[email protected]>2024-05-08 09:25:57 +0800
committerGitHub <[email protected]>2024-05-08 09:25:57 +0800
commit48bd0e49f2687708e0aca2f3791ccc295920c80a (patch)
tree0136f4ea386c9b837ec07b436356bea30a00e0f2 /include
parent9ba6cec663428bad57204e2e3373b48c70efe61f (diff)
[ipc] support of lockless rt_completion (#8887)
* [ipc] lockless rt_completion implementation The new rt_completion implemented by lockless algorithm can improve timer resolution for up to ~12%, compare to sem IPC. Signed-off-by: Shell <[email protected]> * fixup: error * remove useless changes --------- Signed-off-by: Shell <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/rthw.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/rthw.h b/include/rthw.h
index 1b4380c479..67a44acd17 100644
--- a/include/rthw.h
+++ b/include/rthw.h
@@ -227,7 +227,8 @@ void rt_hw_secondary_cpu_up(void);
* secondary cpu idle function
*/
void rt_hw_secondary_cpu_idle_exec(void);
-#else
+
+#else /* !RT_USING_SMP */
#define RT_DEFINE_HW_SPINLOCK(x) rt_ubase_t x
@@ -235,13 +236,13 @@ void rt_hw_secondary_cpu_idle_exec(void);
#define rt_hw_spin_unlock(lock) rt_hw_interrupt_enable(*(lock))
-#endif
+#endif /* RT_USING_SMP */
#ifndef RT_USING_CACHE
-#define rt_hw_isb()
-#define rt_hw_dmb()
-#define rt_hw_dsb()
-#endif
+ #define rt_hw_isb()
+ #define rt_hw_dmb()
+ #define rt_hw_dsb()
+#endif /* RT_USING_CACHE */
#ifdef __cplusplus
}