Re: [PATCH v2] cpufreq: apple-soc: Calculate frequency as a 64-bit value
Viresh Kumar <[email protected]> Tue, 21 Jul 2026 10:28:40 +0530
| Newsgroups | dev.linux.lists.asahi,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pm |
|---|---|
| Message-ID | <gleaxjdn6dyndlqr4lfgyvpnyje5rwznrktjf4e25giozkwjas@cp7upcmeae4j> |
On 20-07-26, 09:25, Sasha Finkelstein wrote: > The current frequency calculation is done in 32 bit, causing problems > if run on a future SoC that can boost higher than 4.2GHz. Ideally, we > should use a true u64 instead of unsigned long and "knowning" that this > only runs on 64 bit machines, but the core code uses ulong everywhere, > so this should be good enough. > > Signed-off-by: Sasha Finkelstein <[email protected]> > --- > Changes in v2: > - Minor style fixes > - Link to v1: https://patch.msgid.link/[email protected] > --- > drivers/cpufreq/apple-soc-cpufreq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied. Thanks. -- viresh