linux/drivers/powercap
Daniel Lezcano 8f50db4b5c powercap/drivers/dtpm: Fix __udivdi3 and __aeabi_uldivmod unresolved symbols
32-bit architectures do not support u64 divisions, so the macro
DIV_ROUND_CLOSEST is not adequate as the compiler will replace the
call to an unexisting function for the platform, leading to
unresolved references to symbols.

Fix this by using the compatible macros:

DIV64_U64_ROUND_CLOSEST and DIV_ROUND_CLOSEST_ULL.

Fixes: a20d0ef97a ("powercap/drivers/dtpm: Add API for dynamic thermal power management")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2020-12-30 18:47:33 +01:00
..
dtpm_cpu.c powercap/drivers/dtpm: Add CPU energy model based support 2020-12-22 19:50:40 +01:00
dtpm.c powercap/drivers/dtpm: Fix __udivdi3 and __aeabi_uldivmod unresolved symbols 2020-12-30 18:47:33 +01:00
idle_inject.c powercap: include header to fix -Wmissing-prototypes 2020-09-25 16:46:01 +02:00
intel_rapl_common.c powercap: RAPL: Add AMD Fam19h RAPL support 2020-11-10 19:59:07 +01:00
intel_rapl_msr.c powercap: Add AMD Fam17h RAPL support 2020-11-10 19:59:07 +01:00
Kconfig powercap/drivers/dtpm: Add CPU energy model based support 2020-12-22 19:50:40 +01:00
Makefile powercap/drivers/dtpm: Add CPU energy model based support 2020-12-22 19:50:40 +01:00
powercap_sys.c Merge branches 'pm-sleep', 'pm-acpi', 'pm-domains' and 'powercap' 2020-12-15 15:26:14 +01:00