static __inline u_long ioapic_lock(struct ioapic_softc *sc) { u_long flags; flags = read_psl(); disable_intr(); mtx_enter(&sc->sc_pic.pic_mutex); return flags; }
static __inline u_long ioapic_lock(struct ioapic_softc *sc) { u_long flags; flags = read_psl(); disable_intr(); #ifdef MULTIPROCESSOR mtx_enter(&sc->sc_pic.pic_mutex); #endif return flags; }