drivers/devfreq/governor_powersave.c

Source file repositories/reference/linux-study-clean/drivers/devfreq/governor_powersave.c

File Facts

System
Linux kernel
Corpus path
drivers/devfreq/governor_powersave.c
Extension
.c
Size
1380 bytes
Lines
63
Domain
Driver Families
Bucket
drivers/devfreq
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.

Dependency Surface

Detected Declarations

Annotated Snippet

subsys_initcall(devfreq_powersave_init);

static void __exit devfreq_powersave_exit(void)
{
	int ret;

	ret = devfreq_remove_governor(&devfreq_powersave);
	if (ret)
		pr_err("%s: failed remove governor %d\n", __func__, ret);

	return;
}
module_exit(devfreq_powersave_exit);
MODULE_DESCRIPTION("DEVFREQ Powersave governor");
MODULE_LICENSE("GPL");

Annotation

Implementation Notes