mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-06 14:05:39 +00:00
ccb45b34d4
The cpufreq code can be in a loadable module, so the architecture support
for it has to be exported:
ERROR: modpost: "acpi_arch_thermal_cpufreq_pctg" [drivers/acpi/processor.ko] undefined!
Fixes: 310293a2b9
("ACPI: processor: reduce CPUFREQ thermal reduction pctg for Tegra241")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
23 lines
493 B
C
23 lines
493 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
#include <linux/acpi.h>
|
|
#include <linux/export.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;
|
|
}
|
|
EXPORT_SYMBOL_GPL(acpi_arch_thermal_cpufreq_pctg);
|