arch/loongarch/kernel/idle.c

Source file repositories/reference/linux-study-clean/arch/loongarch/kernel/idle.c

File Facts

System
Linux kernel
Corpus path
arch/loongarch/kernel/idle.c
Extension
.c
Size
325 bytes
Lines
17
Domain
Architecture Layer
Bucket
arch/loongarch
Inferred role
Architecture Layer: implementation source
Status
source implementation candidate

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

// SPDX-License-Identifier: GPL-2.0
/*
 * LoongArch idle loop support.
 *
 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
 */
#include <linux/cpu.h>
#include <linux/irqflags.h>
#include <asm/cpu.h>
#include <asm/idle.h>

void __cpuidle arch_cpu_idle(void)
{
	__arch_cpu_idle();
	raw_local_irq_disable();
}

Annotation

Implementation Notes