drivers/cpuidle/cpuidle-exynos.c
Source file repositories/reference/linux-study-clean/drivers/cpuidle/cpuidle-exynos.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/cpuidle/cpuidle-exynos.c- Extension
.c- Size
- 3357 bytes
- Lines
- 144
- Domain
- Driver Families
- Bucket
- drivers/cpuidle
- Inferred role
- Driver Families: implementation source
- Status
- source 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/cpuidle.hlinux/cpu_pm.hlinux/export.hlinux/init.hlinux/platform_device.hlinux/of.hlinux/platform_data/cpuidle-exynos.hasm/suspend.hasm/cpuidle.h
Detected Declarations
function exynos_enter_coupled_lowpowerfunction exynos_enter_lowpowerfunction exynos_cpuidle_probe
Annotated Snippet
of_machine_is_compatible("samsung,exynos3250"))) {
exynos_cpuidle_pdata = pdev->dev.platform_data;
ret = cpuidle_register(&exynos_coupled_idle_driver,
cpu_possible_mask);
} else {
exynos_enter_aftr = (void *)(pdev->dev.platform_data);
ret = cpuidle_register(&exynos_idle_driver, NULL);
}
if (ret) {
dev_err(&pdev->dev, "failed to register cpuidle driver\n");
return ret;
}
return 0;
}
static struct platform_driver exynos_cpuidle_driver = {
.probe = exynos_cpuidle_probe,
.driver = {
.name = "exynos_cpuidle",
},
};
builtin_platform_driver(exynos_cpuidle_driver);
Annotation
- Immediate include surface: `linux/cpuidle.h`, `linux/cpu_pm.h`, `linux/export.h`, `linux/init.h`, `linux/platform_device.h`, `linux/of.h`, `linux/platform_data/cpuidle-exynos.h`, `asm/suspend.h`.
- Detected declarations: `function exynos_enter_coupled_lowpower`, `function exynos_enter_lowpower`, `function exynos_cpuidle_probe`.
- Atlas domain: Driver Families / drivers/cpuidle.
- Implementation status: source 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.