Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Dec 2025 06:52:01 +0000
From:      Michal Meloun <mmel@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: ef8a0ef2aa97 - main - ofw: Fix 64-bit arithmetic in cpufreq_dt.c.
Message-ID:  <692fde11.23e1d.4fb59109@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by mmel:

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

commit ef8a0ef2aa97650f37052719496bfbe4ab97a019
Author:     Michal Meloun <mmel@FreeBSD.org>
AuthorDate: 2025-12-02 12:02:39 +0000
Commit:     Michal Meloun <mmel@FreeBSD.org>
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);


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?692fde11.23e1d.4fb59109>