arch/s390/kernel/smp.c
Source file repositories/reference/linux-study-clean/arch/s390/kernel/smp.c
File Facts
- System
- Linux kernel
- Corpus path
arch/s390/kernel/smp.c- Extension
.c- Size
- 30273 bytes
- Lines
- 1162
- Domain
- Architecture Layer
- Bucket
- arch/s390
- Inferred role
- Architecture Layer: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/cpufeature.hlinux/workqueue.hlinux/memblock.hlinux/export.hlinux/init.hlinux/mm.hlinux/err.hlinux/spinlock.hlinux/kernel_stat.hlinux/delay.hlinux/interrupt.hlinux/irqflags.hlinux/irq_work.hlinux/cpu.hlinux/slab.hlinux/sched/hotplug.hlinux/sched/task_stack.hlinux/crash_dump.hlinux/kprobes.hasm/access-regs.hasm/asm-offsets.hasm/machine.hasm/ctlreg.hasm/pfault.hasm/diag.hasm/facility.hasm/fpu.hasm/ipl.hasm/setup.hasm/irq.hasm/tlbflush.hasm/vtimer.h
Detected Declarations
function early_smtfunction __pcpu_sigp_relaxfunction pcpu_sigp_retryfunction pcpu_stoppedfunction pcpu_runningfunction pcpu_ec_callfunction pcpu_alloc_lowcorefunction pcpu_free_lowcorefunction pcpu_prepare_secondaryfunction pcpu_attach_taskfunction pcpu_start_fnfunction __pcpu_delegatefunction pcpu_delegatefunction pcpu_set_smtfunction smp_call_ipl_cpufunction smp_find_processor_idfunction schedule_mcck_handlerfunction arch_vcpu_is_preemptedfunction smp_yield_cpufunction smp_emergency_stopfunction smp_send_stopfunction smp_handle_ext_callfunction do_ext_call_interruptfunction arch_send_call_function_ipi_maskfunction arch_send_call_function_single_ipifunction arch_smp_send_reschedulefunction arch_irq_work_raisefunction smp_store_statusfunction dump_availablefunction smp_save_dump_ipl_cpufunction smp_save_dump_secondary_cpusfunction smp_cpu_set_polarizationfunction smp_cpu_get_polarizationfunction smp_cpu_set_capacityfunction smp_cpu_get_capacityfunction smp_set_core_capacityfunction smp_cpu_get_cpu_addressfunction smp_get_core_infofunction smp_add_corefunction __smp_rescan_cpusfunction firstfunction smp_detect_cpusfunction smp_start_secondaryfunction __cpu_upfunction _setup_possible_cpusfunction __cpu_disablefunction __cpu_diefunction cpu_die
Annotated Snippet
subsys_initcall(s390_smp_init);
Annotation
- Immediate include surface: `linux/cpufeature.h`, `linux/workqueue.h`, `linux/memblock.h`, `linux/export.h`, `linux/init.h`, `linux/mm.h`, `linux/err.h`, `linux/spinlock.h`.
- Detected declarations: `function early_smt`, `function __pcpu_sigp_relax`, `function pcpu_sigp_retry`, `function pcpu_stopped`, `function pcpu_running`, `function pcpu_ec_call`, `function pcpu_alloc_lowcore`, `function pcpu_free_lowcore`, `function pcpu_prepare_secondary`, `function pcpu_attach_task`.
- Atlas domain: Architecture Layer / arch/s390.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.