cpufreq: Add a cpufreq pressure feedback for the scheduler
authorVincent Guittot <vincent.guittot@linaro.org>
Tue, 26 Mar 2024 09:16:12 +0000 (10:16 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 24 Apr 2024 10:07:58 +0000 (12:07 +0200)
commit75d659317bb136d849a10a30ffe7e0462c982d29
tree4589da62553c637b1917a597333963109cf5abb4
parentcd18bec668bb6221a54f03d0b645b7aed841f825
cpufreq: Add a cpufreq pressure feedback for the scheduler

Provide to the scheduler a feedback about the temporary max available
capacity. Unlike arch_update_thermal_pressure(), this doesn't need to be
filtered as the pressure will happen for dozens of ms or more.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Lukasz Luba <lukasz.luba@arm.com>
Reviewed-by: Qais Yousef <qyousef@layalina.io>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20240326091616.3696851-2-vincent.guittot@linaro.org
drivers/cpufreq/cpufreq.c
include/linux/cpufreq.h