cpufreq: longhaul: Make array speeds static const
authorColin Ian King <colin.i.king@gmail.com>
Thu, 3 Nov 2022 15:04:31 +0000 (15:04 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Nov 2022 18:13:34 +0000 (19:13 +0100)
commit59fdc42793252852e1ca95d1355e9ed0fc2a0612
tree63779cbef20751733a9fd269238790852bea3b21
parentabdea5fca78101ffe8dc01958013b6e2719b7cb5
cpufreq: longhaul: Make array speeds static const

Don't populate the read-only array speeds on the stack but instead
make it static. Also makes the object code a little smaller. Replace
hard-coded loop array bounds with ARRAY_SIZE.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/longhaul.c