mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-08 15:04:45 +00:00
310293a2b9
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>
21 lines
416 B
C
21 lines
416 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
#include <linux/acpi.h>
|
|
|
|
#include "../internal.h"
|
|
|
|
#define SMCCC_SOC_ID_T241 0x036b0241
|
|
|
|
int acpi_arch_thermal_cpufreq_pctg(void)
|
|
{
|
|
s32 soc_id = arm_smccc_get_soc_id_version();
|
|
|
|
/*
|
|
* Check JEP106 code for NVIDIA Tegra241 chip (036b:0241) and
|
|
* reduce the CPUFREQ Thermal reduction percentage to 5%.
|
|
*/
|
|
if (soc_id == SMCCC_SOC_ID_T241)
|
|
return 5;
|
|
|
|
return 0;
|
|
}
|