arch/powerpc/platforms/pseries/pseries_energy.c
Source file repositories/reference/linux-study-clean/arch/powerpc/platforms/pseries/pseries_energy.c
File Facts
- System
- Linux kernel
- Corpus path
arch/powerpc/platforms/pseries/pseries_energy.c- Extension
.c- Size
- 8682 bytes
- Lines
- 370
- Domain
- Architecture Layer
- Bucket
- arch/powerpc
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/types.hlinux/errno.hlinux/init.hlinux/seq_file.hlinux/sysfs.hlinux/device.hlinux/cpu.hlinux/of.hasm/cputhreads.hasm/page.hasm/hvcall.hasm/firmware.hasm/prom.h
Detected Declarations
function cpu_to_drc_indexfunction drc_index_to_cpufunction get_best_energy_listfunction get_best_energy_datafunction cpu_activate_hint_list_showfunction cpu_deactivate_hint_list_showfunction percpu_activate_hint_showfunction percpu_deactivate_hint_showfunction pseries_energy_initfunction for_each_possible_cpufunction pseries_energy_cleanupfunction for_each_possible_cpumodule init pseries_energy_init
Annotated Snippet
module_init(pseries_energy_init);
module_exit(pseries_energy_cleanup);
MODULE_DESCRIPTION("Driver for pSeries platform energy management");
MODULE_AUTHOR("Vaidyanathan Srinivasan");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/types.h`, `linux/errno.h`, `linux/init.h`, `linux/seq_file.h`, `linux/sysfs.h`, `linux/device.h`, `linux/cpu.h`.
- Detected declarations: `function cpu_to_drc_index`, `function drc_index_to_cpu`, `function get_best_energy_list`, `function get_best_energy_data`, `function cpu_activate_hint_list_show`, `function cpu_deactivate_hint_list_show`, `function percpu_activate_hint_show`, `function percpu_deactivate_hint_show`, `function pseries_energy_init`, `function for_each_possible_cpu`.
- Atlas domain: Architecture Layer / arch/powerpc.
- 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.