svn commit: r367213 - stable/12/sys/kern
Michal Meloun
mmel at FreeBSD.org
Sat Oct 31 15:38:42 UTC 2020
Author: mmel
Date: Sat Oct 31 15:38:41 2020
New Revision: 367213
URL: https://svnweb.freebsd.org/changeset/base/367213
Log:
MFC r360464:
Don't try to set frequendcy for enumerated but never started CPUs.
Modified:
stable/12/sys/kern/kern_cpu.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/kern/kern_cpu.c
==============================================================================
--- stable/12/sys/kern/kern_cpu.c Sat Oct 31 15:36:41 2020 (r367212)
+++ stable/12/sys/kern/kern_cpu.c Sat Oct 31 15:38:41 2020 (r367213)
@@ -333,6 +333,12 @@ cf_set_method(device_t dev, const struct cf_level *lev
/* Bind to the target CPU before switching. */
pc = cpu_get_pcpu(set->dev);
+
+ /* Skip settings if CPU is not started. */
+ if (pc == NULL) {
+ error = 0;
+ goto out;
+ }
thread_lock(curthread);
pri = curthread->td_priority;
sched_prio(curthread, PRI_MIN);
More information about the svn-src-all
mailing list