cpufreq: armada-8k: Avoid excessive stack usage
authorRob Herring (Arm) <robh@kernel.org>
Tue, 6 Aug 2024 13:58:24 +0000 (07:58 -0600)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 7 Aug 2024 06:41:46 +0000 (12:11 +0530)
commit1ffec650d07f63a584d2a789a20bb64e9b13d34b
treeb7539f30df2d9a4e68f21ccaf4e6eead16926034
parentb81f97031a0ea2823cf37bb37eac51dbb8350e02
cpufreq: armada-8k: Avoid excessive stack usage

In some build configurations (e.g. x86 allmodconfig), 2 cpu_mask
variables exceeds the max stack frame size:

drivers/cpufreq/armada-8k-cpufreq.c:203:1: error: the frame size of 2128 bytes is larger than 2048 bytes

Fix it by making "cpus" static which is fine given that module init is
only called once.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/armada-8k-cpufreq.c