arch/arm/mach-actions/platsmp.c
Source file repositories/reference/linux-study-clean/arch/arm/mach-actions/platsmp.c
File Facts
- System
- Linux kernel
- Corpus path
arch/arm/mach-actions/platsmp.c- Extension
.c- Size
- 3505 bytes
- Lines
- 155
- Domain
- Architecture Layer
- Bucket
- arch/arm
- 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/delay.hlinux/io.hlinux/of.hlinux/of_address.hlinux/smp.hlinux/soc/actions/owl-sps.hasm/cacheflush.hasm/smp_plat.hasm/smp_scu.htrace/events/ipi.h
Detected Declarations
function s500_wakeup_secondaryfunction s500_smp_boot_secondaryfunction s500_smp_prepare_cpus
Annotated Snippet
if (!node) {
pr_err("%s: missing scu\n", __func__);
return;
}
scu_base_addr = of_iomap(node, 0);
if (!scu_base_addr) {
pr_err("%s: could not map scu registers\n", __func__);
return;
}
/*
* While the number of cpus is gathered from dt, also get the
* number of cores from the scu to verify this value when
* booting the cores.
*/
ncores = scu_get_core_count(scu_base_addr);
pr_debug("%s: ncores %d\n", __func__, ncores);
scu_enable(scu_base_addr);
}
}
static const struct smp_operations s500_smp_ops __initconst = {
.smp_prepare_cpus = s500_smp_prepare_cpus,
.smp_boot_secondary = s500_smp_boot_secondary,
};
CPU_METHOD_OF_DECLARE(s500_smp, "actions,s500-smp", &s500_smp_ops);
Annotation
- Immediate include surface: `linux/delay.h`, `linux/io.h`, `linux/of.h`, `linux/of_address.h`, `linux/smp.h`, `linux/soc/actions/owl-sps.h`, `asm/cacheflush.h`, `asm/smp_plat.h`.
- Detected declarations: `function s500_wakeup_secondary`, `function s500_smp_boot_secondary`, `function s500_smp_prepare_cpus`.
- Atlas domain: Architecture Layer / arch/arm.
- 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.