Lines Matching refs:cycles
37 static void (*delay_halt_fn)(u64 start, u64 cycles) __ro_after_init;
63 static void delay_tsc(u64 cycles) in delay_tsc() argument
73 if ((now - bclock) >= cycles) in delay_tsc()
91 cycles -= (now - bclock); in delay_tsc()
105 static void delay_halt_tpause(u64 start, u64 cycles) in delay_halt_tpause() argument
107 u64 until = start + cycles; in delay_halt_tpause()
125 static void delay_halt_mwaitx(u64 unused, u64 cycles) in delay_halt_mwaitx() argument
129 delay = min_t(u64, MWAITX_MAX_WAIT_CYCLES, cycles); in delay_halt_mwaitx()
151 u64 start, end, cycles = __cycles; in delay_halt() local
157 if (!cycles) in delay_halt()
163 delay_halt_fn(start, cycles); in delay_halt()
166 if (cycles <= end - start) in delay_halt()
169 cycles -= end - start; in delay_halt()