Topics

RFC: 1/5 Consistent naming of PM Kconfig flags


Thomas, Ramesh
 

Problem Statement:
Power management Kconfig flags are not consistent and hierarchy is not
clear

Why this is a problem:
-----------------------------
The names include terms like “ADVANCED” which are not meaningful to
current implementation. Names do not specifically identify features that
are enabled by the flag. There are redundancies and overlaps in flags
and the hierarchy is not clear.

What should be done:
------------------------------
Change as follows :

ADVANCED_POWER_MANAGEMENT -> SYS_POWER_MANAGEMENT (turn on the basics
of power management)

ADVANCED_IDLE_SUPPORTED -> SYS_POWER_LPS (enables the kernel
for LPS)
-> SYS_POWER_DEEP_SLEEP (enables the kernel for
DS)

ADVANCED_IDLE -> delete
TICKLESS_IDLE -> SYS_POWER_TICKLESS_IDLE
DEVICE_POWER_MGMT -> DEVICE_POWER_MANAGEMENT

The new flags with the dependency hierarchy will be as follows:

SYS_POWER_MANAGEMENT
|
|___SYS_POWER_TICKLESS_IDLE
|
|___SYS_POWER_LPS
|
|___SYS_POWER_DEEP_SLEEP
|
|___DEVICE_POWER_MANAGEMENT