From 4e290e67b7310d906f113850fddfdf1017a9d15b Mon Sep 17 00:00:00 2001 From: jasone Date: Wed, 4 Oct 2000 01:29:17 +0000 Subject: Convert lockmgr locks from using simple locks to using mutexes. Add lockdestroy() and appropriate invocations, which corresponds to lockinit() and must be called to clean up after a lockmgr lock is no longer needed. --- sys/dev/agp/agp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/dev/agp') diff --git a/sys/dev/agp/agp.c b/sys/dev/agp/agp.c index 4848f01..5bf48a1 100644 --- a/sys/dev/agp/agp.c +++ b/sys/dev/agp/agp.c @@ -271,6 +271,7 @@ agp_generic_detach(device_t dev) struct agp_softc *sc = device_get_softc(dev); bus_release_resource(dev, SYS_RES_MEMORY, AGP_APBASE, sc->as_aperture); lockmgr(&sc->as_lock, LK_DRAIN, 0, curproc); + lockdestroy(&sc->as_lock); destroy_dev(sc->as_devnode); agp_flush_cache(); return 0; -- cgit v1.1