mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 22:34:33 +01:00
Some devices, namely Lenovo Legion devices, have an "extreme" mode where power draw is at the maximum limit of the cooling hardware. Add a new "max-power" platform profile to properly reflect this operating mode. Reviewed-by: Mario Limonciello (AMD) <[email protected]> Acked-by: Rafael J. Wysocki (Intel) <[email protected]> Signed-off-by: Derek J. Clark <[email protected]> Reviewed-by: Armin Wolf <[email protected]> Reviewed-by: Mark Pearson <[email protected]> Link: https://patch.msgid.link/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
51 lines
1.8 KiB
Plaintext
51 lines
1.8 KiB
Plaintext
What: /sys/class/platform-profile/platform-profile-X/name
|
|
Date: March 2025
|
|
KernelVersion: 6.14
|
|
Description: Name of the class device given by the driver.
|
|
|
|
RO
|
|
|
|
What: /sys/class/platform-profile/platform-profile-X/choices
|
|
Date: March 2025
|
|
KernelVersion: 6.14
|
|
Description: This file contains a space-separated list of profiles supported
|
|
for this device.
|
|
|
|
Drivers must use the following standard profile-names:
|
|
|
|
==================== ========================================
|
|
low-power Low power consumption
|
|
cool Cooler operation
|
|
quiet Quieter operation
|
|
balanced Balance between low power consumption
|
|
and performance
|
|
balanced-performance Balance between performance and low
|
|
power consumption with a slight bias
|
|
towards performance
|
|
performance High performance operation
|
|
max-power Higher performance operation that may exceed
|
|
internal battery draw limits when on AC power
|
|
custom Driver defined custom profile
|
|
==================== ========================================
|
|
|
|
RO
|
|
|
|
What: /sys/class/platform-profile/platform-profile-X/profile
|
|
Date: March 2025
|
|
KernelVersion: 6.14
|
|
Description: Reading this file gives the current selected profile for this
|
|
device. Writing this file with one of the strings from
|
|
platform_profile_choices changes the profile to the new value.
|
|
|
|
This file can be monitored for changes by polling for POLLPRI,
|
|
POLLPRI will be signaled on any changes, independent of those
|
|
changes coming from a userspace write; or coming from another
|
|
source such as e.g. a hotkey triggered profile change handled
|
|
either directly by the embedded-controller or fully handled
|
|
inside the kernel.
|
|
|
|
This file may also emit the string 'custom' to indicate
|
|
that the driver is using a driver defined custom profile.
|
|
|
|
RW
|