ACPI: processor: reduce CPUFREQ thermal reduction pctg for Tegra241
authorSrikar Srimath Tirumala <srikars@nvidia.com>
Thu, 23 Nov 2023 12:14:33 +0000 (17:44 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 6 Dec 2023 19:52:47 +0000 (20:52 +0100)
commit310293a2b94197f3d75e65ab22672287a7938a00
tree40ee7a6d74a384c80ca915a71cb8e1f280070f77
parent4c2ba6a0ed1944c17b957157bd1e686be4ea968a
ACPI: processor: reduce CPUFREQ thermal reduction pctg for Tegra241

Current implementation of processor_thermal performs software throttling
in fixed steps of "20%" which can be too coarse for some platforms.
We observed some performance gain after reducing the throttle percentage.
Change the CPUFREQ thermal reduction percentage and maximum thermal steps
to be configurable. Also, update the default values of both for Nvidia
Tegra241 (Grace) SoC. The thermal reduction percentage is reduced to "5%"
and accordingly the maximum number of thermal steps are increased as they
are derived from the reduction percentage.

Signed-off-by: Srikar Srimath Tirumala <srikars@nvidia.com>
Co-developed-by: Sumit Gupta <sumitg@nvidia.com>
Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/arm64/Makefile
drivers/acpi/arm64/thermal_cpufreq.c [new file with mode: 0644]
drivers/acpi/internal.h
drivers/acpi/processor_thermal.c