Lines Matching refs:sleepy
75 static __always_inline int get_steal_spins(bool paravirt, bool sleepy) in get_steal_spins() argument
77 if (paravirt && sleepy) in get_steal_spins()
83 static __always_inline int get_remote_steal_spins(bool paravirt, bool sleepy) in get_remote_steal_spins() argument
85 if (paravirt && sleepy) in get_remote_steal_spins()
91 static __always_inline int get_head_spins(bool paravirt, bool sleepy) in get_head_spins() argument
93 if (paravirt && sleepy) in get_head_spins()
456 static __always_inline bool steal_break(u32 val, int iters, bool paravirt, bool sleepy) in steal_break() argument
458 if (iters >= get_steal_spins(paravirt, sleepy)) in steal_break()
462 (iters >= get_remote_steal_spins(paravirt, sleepy))) { in steal_break()
473 bool sleepy = false; in try_to_steal_lock() local
502 if (!sleepy) { in try_to_steal_lock()
505 sleepy = true; in try_to_steal_lock()
507 sleepy = true; in try_to_steal_lock()
519 sleepy = true; in try_to_steal_lock()
533 } while (!steal_break(val, iters, paravirt, sleepy)); in try_to_steal_lock()
546 bool sleepy = false; in queued_spin_lock_mcs_queue() local
636 if (!sleepy) { in queued_spin_lock_mcs_queue()
639 sleepy = true; in queued_spin_lock_mcs_queue()
641 sleepy = true; in queued_spin_lock_mcs_queue()
660 sleepy = true; in queued_spin_lock_mcs_queue()
668 if (!mustq && iters >= get_head_spins(paravirt, sleepy)) { in queued_spin_lock_mcs_queue()