Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 408434a3245cc6ea981df4edd7fbf0be49856727 14 lines 393 B view raw
1// SPDX-License-Identifier: GPL-2.0 2 3//! Processor related primitives. 4//! 5//! C header: [`include/linux/processor.h`](srctree/include/linux/processor.h) 6 7/// Lower CPU power consumption or yield to a hyperthreaded twin processor. 8/// 9/// It also happens to serve as a compiler barrier. 10#[inline] 11pub fn cpu_relax() { 12 // SAFETY: Always safe to call. 13 unsafe { bindings::cpu_relax() } 14}