Linux PM
SoloLinux
专注Kernel,GPU Driver,ROCM,CPU, Power/Performance开
展开
-
Notifier 使用demo 之pm notifier
D:\kernel-codes\upstream-kernel\linux\drivers\base\firmware_loader\main.cstruct firmware_cache {/* firmware_buf instance will be added into the below list */spinlock_t lock;struct list_head head;int state;#ifdef CONFIG_FW_CACHE/** Names of firmware原创 2020-09-20 12:46:17 · 594 阅读 · 0 评论 -
extract_package 函数 解析
struct acpi_battery { struct mutex lock; struct mutex sysfs_lock; struct power_supply *bat; struct power_supply_desc bat_desc; struct acpi_device *device; struct notifier_block pm_nb; struct li...原创 2020-04-30 13:56:56 · 764 阅读 · 0 评论 -
ACPI Battery 电池管理 - 1
定义acpi battery 结构体保存global的一些参数struct acpi_battery { struct mutex lock; struct mutex sysfs_lock; struct power_supply *bat; struct power_supply_desc bat_desc; struct acpi_device *device; struct ...原创 2020-04-30 12:45:07 · 1315 阅读 · 0 评论 -
Enum power_supply_property
```cenum power_supply_property { /* Properties of type `int' */ POWER_SUPPLY_PROP_STATUS = 0, POWER_SUPPLY_PROP_CHARGE_TYPE, POWER_SUPPLY_PROP_HEALTH, POWER_SUPPLY_PROP_PRESENT, POWER_SUPPLY_P...原创 2020-02-27 23:54:06 · 785 阅读 · 0 评论