Searched refs:likely (Results 1 – 13 of 13) sorted by relevance
/DragonOS/kernel/src/arch/x86_64/interrupt/ |
H A D | handle.rs | 1 use core::intrinsics::likely; 27 if likely(desc.is_some()) { in x86_64_do_irq() 30 if likely(handler.is_some()) { in x86_64_do_irq()
|
/DragonOS/kernel/src/process/ |
H A D | exit.rs | 1 use core::intrinsics::likely; 215 if likely(!(kwo.options.contains(WaitOption::WNOWAIT))) { in do_waitpid() 232 if likely(!kwo.options.contains(WaitOption::WEXITED)) { in do_waitpid()
|
H A D | mod.rs | 5 intrinsics::{likely, unlikely}, 183 if likely(unsafe { __PROCESS_MANAGEMENT_INIT_DONE }) { in preempt_disable() 191 if likely(unsafe { __PROCESS_MANAGEMENT_INIT_DONE }) { in preempt_enable()
|
/DragonOS/kernel/src/arch/x86_64/include/asm/ |
H A D | cmpxchg.h | 77 likely(is_success); \
|
/DragonOS/kernel/src/common/ |
H A D | compiler.h | 5 #define likely(x) __builtin_expect(!!(x), 1) macro
|
/DragonOS/kernel/src/arch/x86_64/mm/ |
H A D | fault.rs | 2 intrinsics::{likely, unlikely}, 314 if likely(!fault.contains(vm_fault_error)) { in do_user_addr_fault()
|
/DragonOS/kernel/src/time/ |
H A D | timekeeping.rs | 2 use core::intrinsics::{likely, unlikely}; 203 if likely(error <= interval) { in timekeeping_adjust() 213 if likely(-error <= interval) { in timekeeping_adjust()
|
/DragonOS/kernel/src/mm/allocator/ |
H A D | buddy.rs | 15 use core::intrinsics::{likely, unlikely}; 140 if likely(i != MAX_ORDER - 1) { in new() 408 if likely(order != MAX_ORDER - 1) { in buddy_free()
|
/DragonOS/kernel/src/sched/ |
H A D | mod.rs | 11 intrinsics::{likely, unlikely}, 194 if likely(self.inv_weight != 0) { in update_inv_weight() 661 if likely(prev.sched_info().policy() >= SchedPolicy::CFS) in pick_next_task() 906 if likely(!Arc::ptr_eq(&prev, &next)) { in __schedule()
|
H A D | fair.rs | 1 use core::intrinsics::likely; 604 if likely(self.runtime_remaining > delta_exec) { in account_cfs_rq_runtime() 618 if likely(self.current().is_some()) && self.nr_running > 1 { in account_cfs_rq_runtime() 1604 && likely(pcb.sched_info().policy() != SchedPolicy::IDLE) in check_preempt_currnet()
|
/DragonOS/kernel/src/libs/futex/ |
H A D | futex.rs | 7 intrinsics::{likely, unlikely}, 418 if likely(cmpval.is_some()) { in futex_requeue()
|
/DragonOS/kernel/src/libs/ |
H A D | elf.rs | 4 intrinsics::{likely, unlikely}, 819 if likely(elf_bss != elf_brk) && unlikely(self.pad_zero(elf_bss).is_err()) { in load()
|
/DragonOS/kernel/src/driver/tty/tty_ldisc/ |
H A D | ntty.rs | 1 use core::intrinsics::likely; 312 if likely(flag == 1) { in receive_buf_raw()
|