[PATCH] cpufreq: apple-soc: Calculate frequency as a 64-bit value
Sasha Finkelstein
k at chaosmail.tech
Fri Jul 3 13:59:15 PDT 2026
On Jul 3, 2026, at 22:52, David Laight <david.laight.linux at gmail.com> wrote:
>
> If it matters you need to fix it for 32bit builds as well.
> It is pretty much really wrong to use 'unsigned long' for frequencies.
> IMHO the should either be 32bit or 64bit.
This module has a 64BIT dep, and is not applicable to 32-bit devices.
In addition, the calculation is passed to dev_pm_opp_find_freq_floor,
which is core code and takes an unsigned long.
More information about the linux-arm-kernel
mailing list