Skip to content

Commit 3faad9e

Browse files
committed
amd64/vmm: Remove useless global variables
No functional change intended. Reviewed by: corvink, jhb, emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D53420
1 parent 78a3a1e commit 3faad9e

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

sys/amd64/vmm/vmm.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -573,12 +573,6 @@ vm_unlock_vcpus(struct vm *vm)
573573
sx_unlock(&vm->vcpus_init_lock);
574574
}
575575

576-
/*
577-
* The default CPU topology is a single thread per package.
578-
*/
579-
u_int cores_per_package = 1;
580-
u_int threads_per_core = 1;
581-
582576
int
583577
vm_create(const char *name, struct vm **retvm)
584578
{
@@ -609,8 +603,8 @@ vm_create(const char *name, struct vm **retvm)
609603
M_ZERO);
610604

611605
vm->sockets = 1;
612-
vm->cores = cores_per_package; /* XXX backwards compatibility */
613-
vm->threads = threads_per_core; /* XXX backwards compatibility */
606+
vm->cores = 1; /* XXX backwards compatibility */
607+
vm->threads = 1; /* XXX backwards compatibility */
614608
vm->maxcpus = vm_maxcpu;
615609

616610
vm_init(vm, true);

0 commit comments

Comments
 (0)