23 lines · c
1// SPDX-License-Identifier: GPL-2.0-only2#include <linux/acpi.h>3#include <linux/export.h>4 5#include "../internal.h"6 7#define SMCCC_SOC_ID_T241 0x036b02418 9int acpi_arch_thermal_cpufreq_pctg(void)10{11 s32 soc_id = arm_smccc_get_soc_id_version();12 13 /*14 * Check JEP106 code for NVIDIA Tegra241 chip (036b:0241) and15 * reduce the CPUFREQ Thermal reduction percentage to 5%.16 */17 if (soc_id == SMCCC_SOC_ID_T241)18 return 5;19 20 return 0;21}22EXPORT_SYMBOL_GPL(acpi_arch_thermal_cpufreq_pctg);23