From: dlg Date: Wed, 24 Aug 2016 09:31:56 +0000 (+0000) Subject: pool_setipl for cardbus and drm pools. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=100b4108b1c0dfcceea487b73edba25419589749;p=openbsd pool_setipl for cardbus and drm pools. ok kettenis@ --- diff --git a/sys/dev/cardbus/cardslot.c b/sys/dev/cardbus/cardslot.c index 6dc7ac6918e..96ecda264d3 100644 --- a/sys/dev/cardbus/cardslot.c +++ b/sys/dev/cardbus/cardslot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cardslot.c,v 1.19 2015/03/14 03:38:47 jsg Exp $ */ +/* $OpenBSD: cardslot.c,v 1.20 2016/08/24 09:31:56 dlg Exp $ */ /* $NetBSD: cardslot.c,v 1.9 2000/03/22 09:35:06 haya Exp $ */ /* @@ -101,9 +101,11 @@ cardslotattach(struct device *parent, struct device *self, void *aux) struct cardbus_softc *csc = NULL; struct pcmcia_softc *psc = NULL; - if (cardsloteventpool.pr_size == 0) + if (cardsloteventpool.pr_size == 0) { pool_init(&cardsloteventpool, sizeof(struct cardslot_event), 0, 0, 0, "cardslot", NULL); + pool_setipl(&cardsloteventpool, IPL_BIO); + } sc->sc_slot = sc->sc_dev.dv_unit; sc->sc_cb_softc = NULL; diff --git a/sys/dev/pci/drm/drm_drv.c b/sys/dev/pci/drm/drm_drv.c index 58fe240600c..52c191a0258 100644 --- a/sys/dev/pci/drm/drm_drv.c +++ b/sys/dev/pci/drm/drm_drv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: drm_drv.c,v 1.147 2016/04/08 08:27:53 kettenis Exp $ */ +/* $OpenBSD: drm_drv.c,v 1.148 2016/08/24 09:31:56 dlg Exp $ */ /*- * Copyright 2007-2009 Owain G. Ainsworth * Copyright © 2008 Intel Corporation @@ -438,6 +438,7 @@ drm_attach(struct device *parent, struct device *self, void *aux) /* XXX unique name */ pool_init(&dev->objpl, dev->driver->gem_size, 0, 0, 0, "drmobjpl", NULL); + pool_setipl(&dev->objpl, IPL_NONE); } if (dev->driver->driver_features & DRIVER_GEM) {