-/* $OpenBSD: if_iwm.c,v 1.392 2022/03/10 15:21:08 bluhm Exp $ */
+/* $OpenBSD: if_iwm.c,v 1.393 2022/03/10 21:00:51 bluhm Exp $ */
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
generation = ++sc->sc_generation;
- KASSERT(atomic_load_int(&sc->task_refs.r_refs) == 0);
+ KASSERT(sc->task_refs.r_refs == 0);
refcnt_init(&sc->task_refs);
err = iwm_preinit(sc);
iwm_del_task(sc, systq, &sc->mac_ctxt_task);
iwm_del_task(sc, systq, &sc->phy_ctxt_task);
iwm_del_task(sc, systq, &sc->bgscan_done_task);
- KASSERT(atomic_load_int(&sc->task_refs.r_refs) >= 1);
+ KASSERT(sc->task_refs.r_refs >= 1);
refcnt_finalize(&sc->task_refs, "iwmstop");
iwm_stop_device(sc);
-/* $OpenBSD: if_iwx.c,v 1.135 2022/03/10 15:21:08 bluhm Exp $ */
+/* $OpenBSD: if_iwx.c,v 1.136 2022/03/10 21:00:51 bluhm Exp $ */
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
if (sc->sc_nvm.sku_cap_11n_enable)
iwx_setup_ht_rates(sc);
- KASSERT(atomic_load_int(&sc->task_refs.r_refs) == 0);
+ KASSERT(sc->task_refs.r_refs == 0);
refcnt_init(&sc->task_refs);
ifq_clr_oactive(&ifp->if_snd);
ifp->if_flags |= IFF_RUNNING;
iwx_del_task(sc, systq, &sc->mac_ctxt_task);
iwx_del_task(sc, systq, &sc->phy_ctxt_task);
iwx_del_task(sc, systq, &sc->bgscan_done_task);
- KASSERT(atomic_load_int(&sc->task_refs.r_refs) >= 1);
+ KASSERT(sc->task_refs.r_refs >= 1);
refcnt_finalize(&sc->task_refs, "iwxstop");
iwx_stop_device(sc);