Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/drivers/acpi/arm64/thermal_cpufreq.c
26285 views
1
// SPDX-License-Identifier: GPL-2.0-only
2
#include <linux/acpi.h>
3
#include <linux/export.h>
4
5
#include "../internal.h"
6
7
#define SMCCC_SOC_ID_T241 0x036b0241
8
9
int 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) and
15
* 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
}
22
EXPORT_SYMBOL_GPL(acpi_arch_thermal_cpufreq_pctg);
23
24