diff options
| author | Michal Meloun <mmel@FreeBSD.org> | 2025-12-02 12:02:39 +0000 |
|---|---|---|
| committer | Michal Meloun <mmel@FreeBSD.org> | 2025-12-03 06:47:41 +0000 |
| commit | ef8a0ef2aa97650f37052719496bfbe4ab97a019 (patch) | |
| tree | 81fb48ed24c6f96d749ad307d78e0075d721314a | |
| parent | 3e7d3361dd2491e2dc4b0b05c09b8fab4beaadc5 (diff) | |
ofw: Fix 64-bit arithmetic in cpufreq_dt.c.
MFC after: 3 weeks
| -rw-r--r-- | sys/dev/cpufreq/cpufreq_dt.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
