sysctl kern.sched.ule.topology_spec: allow to run if ULE is not initialized

Reviewed by:	olce
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D54831
This commit is contained in:
Konstantin Belousov
2026-01-23 17:09:56 +02:00
parent b602ba1b5f
commit 5a6e0e31bc
+2 -1
View File
@@ -3543,7 +3543,8 @@ sysctl_kern_sched_ule_topology_spec(SYSCTL_HANDLER_ARGS)
struct sbuf *topo;
int err;
KASSERT(cpu_top != NULL, ("cpu_top isn't initialized"));
if (cpu_top == NULL)
return (ENOTTY);
topo = sbuf_new_for_sysctl(NULL, NULL, 512, req);
if (topo == NULL)