summaryrefslogtreecommitdiff
path: root/drivers/hwmon/max16065.c
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2024-02-02 12:21:44 +0300
committerGuenter Roeck <linux@roeck-us.net>2024-02-25 23:37:37 +0300
commit1a793caf6f6991716cb07583ed7c27de84ef0cba (patch)
tree9fe25964049c0b077f92977b8996f5d47f0fd9c9 /drivers/hwmon/max16065.c
parent18b24a5f9ca3f180f0be72b98f170f043a5d8961 (diff)
downloadlinux-1a793caf6f6991716cb07583ed7c27de84ef0cba.tar.xz
hwmon: (coretemp) Use dynamic allocated memory for core temp_data
The total memory needed for saving per core temperature data depends on the number of cores in a package. Using static allocated memory wastes memories on systems with low per package core count. Improve the code to use dynamic allocated memory so that it can be improved further when per package core count information becomes available. No functional change intended. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Link: https://lore.kernel.org/r/20240202092144.71180-12-rui.zhang@intel.com [groeck: Fixed continuation line alignment] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/max16065.c')
0 files changed, 0 insertions, 0 deletions