drivers/cpufreq/sti-cpufreq.c
Source file repositories/reference/linux-study-clean/drivers/cpufreq/sti-cpufreq.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/cpufreq/sti-cpufreq.c- Extension
.c- Size
- 7387 bytes
- Lines
- 305
- Domain
- Driver Families
- Bucket
- drivers/cpufreq
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/cpu.hlinux/io.hlinux/mfd/syscon.hlinux/module.hlinux/of.hlinux/platform_device.hlinux/pm_opp.hlinux/regmap.h
Detected Declarations
function sti_cpufreq_fetch_majorfunction sti_cpufreq_fetch_minorfunction sti_cpufreq_fetch_regmap_fieldfunction sti_cpufreq_set_opp_infofunction sti_cpufreq_fetch_syscon_registersfunction sti_cpufreq_initmodule init sti_cpufreq_init
Annotated Snippet
module_init(sti_cpufreq_init);
static const struct of_device_id __maybe_unused sti_cpufreq_of_match[] = {
{ .compatible = "st,stih407" },
{ .compatible = "st,stih410" },
{ .compatible = "st,stih418" },
{ },
};
MODULE_DEVICE_TABLE(of, sti_cpufreq_of_match);
MODULE_DESCRIPTION("STMicroelectronics CPUFreq/OPP driver");
MODULE_AUTHOR("Ajitpal Singh <ajitpal.singh@st.com>");
MODULE_AUTHOR("Lee Jones <lee.jones@linaro.org>");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/cpu.h`, `linux/io.h`, `linux/mfd/syscon.h`, `linux/module.h`, `linux/of.h`, `linux/platform_device.h`, `linux/pm_opp.h`, `linux/regmap.h`.
- Detected declarations: `function sti_cpufreq_fetch_major`, `function sti_cpufreq_fetch_minor`, `function sti_cpufreq_fetch_regmap_field`, `function sti_cpufreq_set_opp_info`, `function sti_cpufreq_fetch_syscon_registers`, `function sti_cpufreq_init`, `module init sti_cpufreq_init`.
- Atlas domain: Driver Families / drivers/cpufreq.
- Implementation status: integration 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.