Skip to content

Commit 01f91cc

Browse files
author
Herton R. Krzesinski
committed
Merge: cpufreq: Enable CPUFREQ thermal cooling for NVIDIA Orin
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/2035 Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2165104 Enable CPUFREQ cooling Register Tegra194 CPUFREQ driver as a cooling device by populating CPUFREQ_IS_COOLING_DEV flag. This change enables CPU frequency throttling upon passive trip points being crossed. This patch is necessary to support cpufreq thermal cooling on the NVIDIA Orin Signed-off-by: Joel Slebodnick <jslebodn@redhat.com> Approved-by: Lenny Szubowicz <lszubowi@redhat.com> Approved-by: Steve Best <sbest@redhat.com> Approved-by: Prarit Bhargava <prarit@redhat.com> Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
2 parents 30e0b28 + 327c329 commit 01f91cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/cpufreq/tegra194-cpufreq.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,8 @@ static int tegra194_cpufreq_set_target(struct cpufreq_policy *policy,
415415

416416
static struct cpufreq_driver tegra194_cpufreq_driver = {
417417
.name = "tegra194",
418-
.flags = CPUFREQ_CONST_LOOPS | CPUFREQ_NEED_INITIAL_FREQ_CHECK,
418+
.flags = CPUFREQ_CONST_LOOPS | CPUFREQ_NEED_INITIAL_FREQ_CHECK |
419+
CPUFREQ_IS_COOLING_DEV,
419420
.verify = cpufreq_generic_frequency_table_verify,
420421
.target_index = tegra194_cpufreq_set_target,
421422
.get = tegra194_get_speed,

0 commit comments

Comments
 (0)