arch/arm64/kernel/psci.c
Source file repositories/reference/linux-study-clean/arch/arm64/kernel/psci.c
File Facts
- System
- Linux kernel
- Corpus path
arch/arm64/kernel/psci.c- Extension
.c- Size
- 2700 bytes
- Lines
- 125
- Domain
- Architecture Layer
- Bucket
- arch/arm64
- 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.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/init.hlinux/of.hlinux/smp.hlinux/delay.hlinux/psci.hlinux/mm.huapi/linux/psci.hasm/cpu_ops.hasm/errno.hasm/smp_plat.h
Detected Declarations
function Copyrightfunction cpu_psci_cpu_preparefunction cpu_psci_cpu_bootfunction cpu_psci_cpu_can_disablefunction cpu_psci_cpu_disablefunction cpu_psci_cpu_diefunction cpu_psci_cpu_kill
Annotated Snippet
if (err == PSCI_0_2_AFFINITY_LEVEL_OFF) {
pr_info("CPU%d killed (polled %d ms)\n", cpu,
jiffies_to_msecs(jiffies - start));
return 0;
}
usleep_range(100, 1000);
} while (time_before(jiffies, end));
pr_warn("CPU%d may not have shut down cleanly (AFFINITY_INFO reports %d)\n",
cpu, err);
return -ETIMEDOUT;
}
#endif
const struct cpu_operations cpu_psci_ops = {
.name = "psci",
.cpu_init = cpu_psci_cpu_init,
.cpu_prepare = cpu_psci_cpu_prepare,
.cpu_boot = cpu_psci_cpu_boot,
#ifdef CONFIG_HOTPLUG_CPU
.cpu_can_disable = cpu_psci_cpu_can_disable,
.cpu_disable = cpu_psci_cpu_disable,
.cpu_die = cpu_psci_cpu_die,
.cpu_kill = cpu_psci_cpu_kill,
#endif
};
Annotation
- Immediate include surface: `linux/init.h`, `linux/of.h`, `linux/smp.h`, `linux/delay.h`, `linux/psci.h`, `linux/mm.h`, `uapi/linux/psci.h`, `asm/cpu_ops.h`.
- Detected declarations: `function Copyright`, `function cpu_psci_cpu_prepare`, `function cpu_psci_cpu_boot`, `function cpu_psci_cpu_can_disable`, `function cpu_psci_cpu_disable`, `function cpu_psci_cpu_die`, `function cpu_psci_cpu_kill`.
- Atlas domain: Architecture Layer / arch/arm64.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.