summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorXueqin Luo <luoxueqin@kylinos.cn>2026-05-15 05:42:42 +0300
committerViresh Kumar <viresh.kumar@linaro.org>2026-05-20 11:12:52 +0300
commit9a303892acac58e77704d336418fa9ae92e3f70f (patch)
tree455b5fe7fd5d268d87e3229449d5c33406b8a85e /include
parentbcb8889c4981fdde42d4fd2c29a77d510fe21da2 (diff)
downloadlinux-9a303892acac58e77704d336418fa9ae92e3f70f.tar.xz
cpufreq: cppc: mask Desired_Excursion when autonomous selection is enabled
According to the ACPI 6.6 specification, the Desired_Excursion field is not utilized when autonomous selection is enabled. In this mode, the bit is architecturally ignored and does not carry meaningful information. Currently, the kernel exposes the raw Performance Limited register value to userspace through the cpufreq sysfs interface. This may lead to misinterpretation, as userspace may assume Desired_Excursion is valid even when autonomous selection is active. To provide a stable and semantically correct ABI, mask out the Desired_Excursion bit when autonomous selection is enabled, so that userspace does not observe undefined or misleading values. Writes are left unchanged, as the field is architecturally ignored in this mode and write attempts are harmless. Signed-off-by: Xueqin Luo <luoxueqin@kylinos.cn> Reviewed-by: Pierre Gondois <pierre.gondois@arm.com> Reviewed-by: Sumit Gupta <sumitg@nvidia.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions