Searched refs:cpu_relax (Results 1 – 9 of 9) sorted by relevance
14 fn cpu_relax(iterations: u32) { in cpu_relax() function54 cpu_relax(1 << self.counter); in spin()72 cpu_relax(1 << self.counter); in spin_no_yield()
61 #define cpu_relax() asm volatile("rep; nop" ::: "memory"); macro64 #define cpu_relax() asm volatile("":::"memory") macro67 #define cpu_relax() asm volatile("yield" ::: "memory") macro
71 static void cpu_relax(void) in cpu_relax() function87 cpu_relax(); in hisi_ipc_clear_ack()111 cpu_relax(); in hisi_ipc_send_cmd_with_ack()
17 use core::sync::atomic::spin_loop_hint as cpu_relax;148 cpu_relax(); in wait()
99 for (int i = 0; i < opsPerStep; i++) cpu_relax(); in generateLoad()
33 #define cpu_relax() __builtin_ia32_pause() macro35 #define cpu_relax() asm volatile("": : :"memory") macro125 cpu_relax(); in stress()
183 fn cpu_relax(iterations: usize) { in cpu_relax() function367 cpu_relax(1 << spin_count); in lock_slow()500 cpu_relax(1 << spin_count); in unlock_slow()
185 fn cpu_relax(iterations: usize) { in cpu_relax() function369 cpu_relax(1 << spin_count); in lock_slow()502 cpu_relax(1 << spin_count); in unlock_slow()