drivers/cpufreq/pmac64-cpufreq.c
Source file repositories/reference/linux-study-clean/drivers/cpufreq/pmac64-cpufreq.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/cpufreq/pmac64-cpufreq.c- Extension
.c- Size
- 17938 bytes
- Lines
- 675
- 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/module.hlinux/types.hlinux/errno.hlinux/kernel.hlinux/delay.hlinux/sched.hlinux/cpufreq.hlinux/init.hlinux/completion.hlinux/mutex.hlinux/of.hasm/machdep.hasm/irq.hasm/sections.hasm/cputable.hasm/time.hasm/smu.hasm/pmac_pfunc.h
Detected Declarations
function g5_smu_switch_voltfunction g5_vdnap_switch_voltfunction g5_scom_switch_freqfunction g5_scom_query_freqfunction g5_dummy_switch_voltfunction g5_pfunc_switch_voltfunction g5_pfunc_switch_freqfunction g5_pfunc_query_freqfunction g5_cpufreq_targetfunction g5_cpufreq_get_speedfunction g5_cpufreq_cpu_initfunction g5_neo2_cpufreq_initfunction g5_pm72_cpufreq_initfunction g5_cpufreq_initmodule init g5_cpufreq_init
Annotated Snippet
module_init(g5_cpufreq_init);
MODULE_DESCRIPTION("cpufreq driver for SMU & 970FX based G5 Macs");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/types.h`, `linux/errno.h`, `linux/kernel.h`, `linux/delay.h`, `linux/sched.h`, `linux/cpufreq.h`, `linux/init.h`.
- Detected declarations: `function g5_smu_switch_volt`, `function g5_vdnap_switch_volt`, `function g5_scom_switch_freq`, `function g5_scom_query_freq`, `function g5_dummy_switch_volt`, `function g5_pfunc_switch_volt`, `function g5_pfunc_switch_freq`, `function g5_pfunc_query_freq`, `function g5_cpufreq_target`, `function g5_cpufreq_get_speed`.
- 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.