aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ncr
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2026-11-30 07:52:27 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2026-11-30 08:14:02 +0000
commit34b0e01a4e844573cc3b0b1dc2078237d16f7f68 (patch)
tree890334c88d7f10f99048d1a9b58b0ff63fb2d7ce /sys/dev/ncr
parentc54c8a5b564fab2aa4d8beacca94635d162f9eef (diff)
cpufreq_dt: Do not use an uninitialised OPP when restoring the stateHEADmain
cpufreq_dt_set() only looks up the current OPP (copp) when the voltage cannot be read from the regulator. When it can, which is the usual case, copp is never set but the two error paths that restore the previous state still use it: a failure to set the clock reads the voltage limits of copp and a failure to lower the voltage reads its frequency. Restore the frequency with the one that was read from the clock before the change, and look up the current OPP when the voltage has to be restored, skipping it if there is none. Fixes: a701764e9c50 ("Improve cpufreq_dt.") Reported by: llm-postcr
Diffstat (limited to 'sys/dev/ncr')
0 files changed, 0 insertions, 0 deletions