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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user