Skip to content

Commit 2b8d594

Browse files
storulfrafaeljw
authored andcommitted
cpuidle: Respect the CPU system wakeup QoS limit for cpuidle
The CPU system wakeup QoS limit must be respected for the regular cpuidle state selection. Therefore, let's extend the common governor helper cpuidle_governor_latency_req(), to take the constraint into account. Reviewed-by: Dhruva Gole <d-gole@ti.com> Reviewed-by: Kevin Hilman (TI) <khilman@baylibre.com> Tested-by: Kevin Hilman (TI) <khilman@baylibre.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Link: https://patch.msgid.link/20251125112650.329269-6-ulf.hansson@linaro.org Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 99b4244 commit 2b8d594

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/cpuidle/governor.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ s64 cpuidle_governor_latency_req(unsigned int cpu)
111111
struct device *device = get_cpu_device(cpu);
112112
int device_req = dev_pm_qos_raw_resume_latency(device);
113113
int global_req = cpu_latency_qos_limit();
114+
int global_wake_req = cpu_wakeup_latency_qos_limit();
115+
116+
if (global_req > global_wake_req)
117+
global_req = global_wake_req;
114118

115119
if (device_req > global_req)
116120
device_req = global_req;

0 commit comments

Comments
 (0)