ACPI: processor: thermal: avoid cpufreq_get_policy()
authorManfred Spraul <manfred@colorfullife.com>
Wed, 22 Dec 2021 14:09:31 +0000 (15:09 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 30 Dec 2021 18:39:34 +0000 (19:39 +0100)
commit8120832d8f82aa7316c578fbccf11e385a5b3601
tree6efdba329e3a9e133f722b2af6dc55d1dc7eef55
parent87ebbb8c612b1214f227ebb8f25442c6d163e802
ACPI: processor: thermal: avoid cpufreq_get_policy()

cpu_has_cpufreq() stores a 'struct cpufreq_policy' on the stack.
Unfortunately, with debugging options enabled, the structure can be
larger than 1024 bytes, which causes a compiler warning/error.

(actually observed: 1184 bytes).

Therefore: Switch to cpufreq_cpu_get().

Signed-off-by: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/processor_thermal.c