arch/arm/mach-qcom/platsmp.c
Source file repositories/reference/linux-study-clean/arch/arm/mach-qcom/platsmp.c
File Facts
- System
- Linux kernel
- Corpus path
arch/arm/mach-qcom/platsmp.c- Extension
.c- Size
- 9219 bytes
- Lines
- 407
- 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/init.hlinux/errno.hlinux/delay.hlinux/device.hlinux/of.hlinux/of_address.hlinux/smp.hlinux/io.hlinux/firmware/qcom/qcom_scm.hasm/smp_plat.h
Detected Declarations
function qcom_cpu_diefunction scss_release_secondaryfunction cortex_a7_release_secondaryfunction kpssv1_release_secondaryfunction kpssv2_release_secondaryfunction qcom_boot_secondaryfunction msm8660_boot_secondaryfunction cortex_a7_boot_secondaryfunction kpssv1_boot_secondaryfunction kpssv2_boot_secondaryfunction qcom_smp_prepare_cpus
Annotated Snippet
for_each_present_cpu(cpu) {
if (cpu == smp_processor_id())
continue;
set_cpu_present(cpu, false);
}
pr_warn("Failed to set CPU boot address, disabling SMP\n");
}
}
static const struct smp_operations smp_msm8660_ops __initconst = {
.smp_prepare_cpus = qcom_smp_prepare_cpus,
.smp_boot_secondary = msm8660_boot_secondary,
#ifdef CONFIG_HOTPLUG_CPU
.cpu_die = qcom_cpu_die,
#endif
};
CPU_METHOD_OF_DECLARE(qcom_smp, "qcom,gcc-msm8660", &smp_msm8660_ops);
static const struct smp_operations qcom_smp_cortex_a7_ops __initconst = {
.smp_prepare_cpus = qcom_smp_prepare_cpus,
.smp_boot_secondary = cortex_a7_boot_secondary,
#ifdef CONFIG_HOTPLUG_CPU
.cpu_die = qcom_cpu_die,
#endif
};
CPU_METHOD_OF_DECLARE(qcom_smp_msm8226, "qcom,msm8226-smp", &qcom_smp_cortex_a7_ops);
CPU_METHOD_OF_DECLARE(qcom_smp_msm8909, "qcom,msm8909-smp", &qcom_smp_cortex_a7_ops);
CPU_METHOD_OF_DECLARE(qcom_smp_msm8916, "qcom,msm8916-smp", &qcom_smp_cortex_a7_ops);
static const struct smp_operations qcom_smp_kpssv1_ops __initconst = {
.smp_prepare_cpus = qcom_smp_prepare_cpus,
.smp_boot_secondary = kpssv1_boot_secondary,
#ifdef CONFIG_HOTPLUG_CPU
.cpu_die = qcom_cpu_die,
#endif
};
CPU_METHOD_OF_DECLARE(qcom_smp_kpssv1, "qcom,kpss-acc-v1", &qcom_smp_kpssv1_ops);
static const struct smp_operations qcom_smp_kpssv2_ops __initconst = {
.smp_prepare_cpus = qcom_smp_prepare_cpus,
.smp_boot_secondary = kpssv2_boot_secondary,
#ifdef CONFIG_HOTPLUG_CPU
.cpu_die = qcom_cpu_die,
#endif
};
CPU_METHOD_OF_DECLARE(qcom_smp_kpssv2, "qcom,kpss-acc-v2", &qcom_smp_kpssv2_ops);
Annotation
- Immediate include surface: `linux/init.h`, `linux/errno.h`, `linux/delay.h`, `linux/device.h`, `linux/of.h`, `linux/of_address.h`, `linux/smp.h`, `linux/io.h`.
- Detected declarations: `function qcom_cpu_die`, `function scss_release_secondary`, `function cortex_a7_release_secondary`, `function kpssv1_release_secondary`, `function kpssv2_release_secondary`, `function qcom_boot_secondary`, `function msm8660_boot_secondary`, `function cortex_a7_boot_secondary`, `function kpssv1_boot_secondary`, `function kpssv2_boot_secondary`.
- 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.