Home
last modified time | relevance | path

Searched refs:likely (Results 1 – 13 of 13) sorted by relevance

/DragonOS/kernel/src/arch/x86_64/interrupt/
H A Dhandle.rs1 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 Dexit.rs1 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 Dmod.rs5 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 Dcmpxchg.h77 likely(is_success); \
/DragonOS/kernel/src/common/
H A Dcompiler.h5 #define likely(x) __builtin_expect(!!(x), 1) macro
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dfault.rs2 intrinsics::{likely, unlikely},
314 if likely(!fault.contains(vm_fault_error)) { in do_user_addr_fault()
/DragonOS/kernel/src/time/
H A Dtimekeeping.rs2 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 Dbuddy.rs15 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 Dmod.rs11 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 Dfair.rs1 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 Dfutex.rs7 intrinsics::{likely, unlikely},
418 if likely(cmpval.is_some()) { in futex_requeue()
/DragonOS/kernel/src/libs/
H A Delf.rs4 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 Dntty.rs1 use core::intrinsics::likely;
312 if likely(flag == 1) { in receive_buf_raw()