drivers/cpufreq/sh-cpufreq.c
Source file repositories/reference/linux-study-clean/drivers/cpufreq/sh-cpufreq.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/cpufreq/sh-cpufreq.c- Extension
.c- Size
- 4293 bytes
- Lines
- 169
- 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/types.hlinux/cpufreq.hlinux/kernel.hlinux/module.hlinux/init.hlinux/err.hlinux/cpumask.hlinux/cpu.hlinux/smp.hlinux/clk.hlinux/percpu.hlinux/sh_clk.h
Detected Declarations
struct cpufreq_targetfunction sh_cpufreq_getfunction __sh_cpufreq_targetfunction sh_cpufreq_targetfunction sh_cpufreq_verifyfunction sh_cpufreq_cpu_initfunction sh_cpufreq_cpu_exitfunction sh_cpufreq_module_initfunction sh_cpufreq_module_exitmodule init sh_cpufreq_module_init
Annotated Snippet
module_init(sh_cpufreq_module_init);
module_exit(sh_cpufreq_module_exit);
MODULE_AUTHOR("Paul Mundt <lethal@linux-sh.org>");
MODULE_DESCRIPTION("cpufreq driver for SuperH");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/types.h`, `linux/cpufreq.h`, `linux/kernel.h`, `linux/module.h`, `linux/init.h`, `linux/err.h`, `linux/cpumask.h`, `linux/cpu.h`.
- Detected declarations: `struct cpufreq_target`, `function sh_cpufreq_get`, `function __sh_cpufreq_target`, `function sh_cpufreq_target`, `function sh_cpufreq_verify`, `function sh_cpufreq_cpu_init`, `function sh_cpufreq_cpu_exit`, `function sh_cpufreq_module_init`, `function sh_cpufreq_module_exit`, `module init sh_cpufreq_module_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.