14 lines · 393 B · Rust
RawDownload
// SPDX-License-Identifier: GPL-2.0 //! Processor related primitives.//!//! C header: [`include/linux/processor.h`](srctree/include/linux/processor.h) /// Lower CPU power consumption or yield to a hyperthreaded twin processor.////// It also happens to serve as a compiler barrier.#[inline]pub fn cpu_relax() {    // SAFETY: Always safe to call.    unsafe { bindings::cpu_relax() }}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t