thermal_cpufreq.c 493 B

12345678910111213141516171819202122
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. #include <linux/acpi.h>
  3. #include <linux/export.h>
  4. #include "../internal.h"
  5. #define SMCCC_SOC_ID_T241 0x036b0241
  6. int acpi_arch_thermal_cpufreq_pctg(void)
  7. {
  8. s32 soc_id = arm_smccc_get_soc_id_version();
  9. /*
  10. * Check JEP106 code for NVIDIA Tegra241 chip (036b:0241) and
  11. * reduce the CPUFREQ Thermal reduction percentage to 5%.
  12. */
  13. if (soc_id == SMCCC_SOC_ID_T241)
  14. return 5;
  15. return 0;
  16. }
  17. EXPORT_SYMBOL_GPL(acpi_arch_thermal_cpufreq_pctg);