mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
hwt: fix !SMP build.
Sponsored by: UKRI
This commit is contained in:
parent
070d185b2f
commit
906d7a4b52
2 changed files with 4 additions and 0 deletions
|
|
@ -305,9 +305,11 @@ hwt_ioctl_alloc_mode_cpu(struct thread *td, struct hwt_owner *ho,
|
|||
return (error);
|
||||
|
||||
CPU_FOREACH_ISSET(cpu_id, &cpu_map) {
|
||||
#ifdef SMP
|
||||
/* Ensure CPU is not halted. */
|
||||
if (CPU_ISSET(cpu_id, &hlt_cpus_mask))
|
||||
return (ENXIO);
|
||||
#endif
|
||||
#if 0
|
||||
/* TODO: Check if the owner have this cpu configured already. */
|
||||
ctx = hwt_owner_lookup_ctx_by_cpu(ho, halloc->cpu);
|
||||
|
|
|
|||
|
|
@ -213,9 +213,11 @@ hwt_vm_start_cpu_mode(struct hwt_context *ctx)
|
|||
CPU_ZERO(&enable_cpus);
|
||||
|
||||
CPU_FOREACH_ISSET(cpu_id, &ctx->cpu_map) {
|
||||
#ifdef SMP
|
||||
/* Ensure CPU is not halted. */
|
||||
if (CPU_ISSET(cpu_id, &hlt_cpus_mask))
|
||||
continue;
|
||||
#endif
|
||||
|
||||
hwt_backend_configure(ctx, cpu_id, cpu_id);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue