From 5709c18c245365e4923768937bfc40dcf123181a Mon Sep 17 00:00:00 2001 From: mlarkin Date: Sat, 16 Jul 2016 06:32:18 +0000 Subject: [PATCH] remove unused vmm_activate function. all vmm-specific suspend/resume needs are handled during cpu hatch. --- sys/arch/amd64/amd64/vmm.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/sys/arch/amd64/amd64/vmm.c b/sys/arch/amd64/amd64/vmm.c index 24107ce7575..6c0e8c52658 100644 --- a/sys/arch/amd64/amd64/vmm.c +++ b/sys/arch/amd64/amd64/vmm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmm.c,v 1.66 2016/07/13 06:57:35 mlarkin Exp $ */ +/* $OpenBSD: vmm.c,v 1.67 2016/07/16 06:32:18 mlarkin Exp $ */ /* * Copyright (c) 2014 Mike Larkin * @@ -100,7 +100,6 @@ struct vmm_softc { int vmm_probe(struct device *, void *, void *); void vmm_attach(struct device *, struct device *, void *); -int vmm_activate(struct device *, int); int vmmopen(dev_t, int, int, struct proc *); int vmmioctl(dev_t, u_long, caddr_t, int, struct proc *); int vmmclose(dev_t, int, int, struct proc *); @@ -187,7 +186,7 @@ struct cfdriver vmm_cd = { }; const struct cfattach vmm_ca = { - sizeof(struct vmm_softc), vmm_probe, vmm_attach, NULL, vmm_activate + sizeof(struct vmm_softc), vmm_probe, vmm_attach, NULL, NULL }; /* Pools for VMs and VCPUs */ @@ -309,19 +308,6 @@ vmm_attach(struct device *parent, struct device *self, void *aux) vmm_softc = sc; } -/* - * vmm_activate - * - * Autoconf routine used during activate/deactivate. - * - * XXX need this for suspend/resume - */ -int -vmm_activate(struct device *self, int act) -{ - return 0; -} - /* * vmmopen * -- 2.20.1