mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-08-20 21:29:42 +08:00
[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 <smokewood@qq.com> * fixup: error * remove useless changes --------- Signed-off-by: Shell <smokewood@qq.com>
This commit is contained in:
+7
-6
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user