The branch main has been updated by mmel:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=ef8a0ef2aa97650f37052719496bfbe4ab97a019

commit ef8a0ef2aa97650f37052719496bfbe4ab97a019
Author:     Michal Meloun <[email protected]>
AuthorDate: 2025-12-02 12:02:39 +0000
Commit:     Michal Meloun <[email protected]>
CommitDate: 2025-12-03 06:47:41 +0000

    ofw: Fix 64-bit arithmetic in cpufreq_dt.c.
    
    MFC after: 3 weeks
---
 sys/dev/cpufreq/cpufreq_dt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/cpufreq/cpufreq_dt.c b/sys/dev/cpufreq/cpufreq_dt.c
index b212b08e9a83..44334cbcab57 100644
--- a/sys/dev/cpufreq/cpufreq_dt.c
+++ b/sys/dev/cpufreq/cpufreq_dt.c
@@ -210,7 +210,7 @@ cpufreq_dt_set(device_t dev, const struct cf_setting *set)
        } else
                uvolt = 0;
 
-       opp = cpufreq_dt_find_opp(sc->dev, set->freq * 1000000);
+       opp = cpufreq_dt_find_opp(sc->dev, (uint64_t)set->freq * 1000000);
        if (opp == NULL) {
                device_printf(dev, "Couldn't find an opp for this freq\n");
                return (EINVAL);

Reply via email to