cpufreq: CPPC: Add u64 casts to avoid overflowing
authorPierre Gondois <pierre.gondois@arm.com>
Tue, 20 Dec 2022 10:12:25 +0000 (11:12 +0100)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 27 Dec 2022 02:57:14 +0000 (08:27 +0530)
commitf5f94b9c8b805d87ff185caf9779c3a4d07819e3
tree3a0630d5a428270c86c107862d46c02374790d7b
parent83749a2ee548f568ce2037749e19602fdc9f3ee3
cpufreq: CPPC: Add u64 casts to avoid overflowing

The fields of the _CPC object are unsigned 32-bits values.
To avoid overflows while using _CPC's values, add 'u64' casts.

Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cppc_cpufreq.c