Re: [PATCH] cpufreq: apple-soc: Calculate frequency as a 64-bit value

From: Sasha Finkelstein

Date: Fri Jul 03 2026 - 16:59:44 EST


On Jul 3, 2026, at 22:52, David Laight <david.laight.linux@xxxxxxxxx> 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.