arch/loongarch/kernel/topology.c

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

File Facts

System
Linux kernel
Corpus path
arch/loongarch/kernel/topology.c
Extension
.c
Size
369 bytes
Lines
19
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
#include <linux/acpi.h>
#include <linux/cpu.h>
#include <linux/cpumask.h>
#include <linux/init.h>
#include <linux/node.h>
#include <linux/nodemask.h>
#include <linux/percpu.h>
#include <asm/bootinfo.h>

#include <acpi/processor.h>

#ifdef CONFIG_HOTPLUG_CPU
bool arch_cpu_is_hotpluggable(int cpu)
{
	return !io_master(cpu);
}
#endif

Annotation

Implementation Notes