coretemp: Use lwkt_send_ipiq_passive()
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 5 Apr 2015 14:37:27 +0000 (22:37 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 5 Apr 2015 14:37:27 +0000 (22:37 +0800)
This makes coretemp even more lightweight.

sys/dev/powermng/coretemp/coretemp.c

index ab65c0d..692ca51 100644 (file)
@@ -313,7 +313,7 @@ coretemp_get_temp(device_t dev)
                        sc->sc_flags |= CORETEMP_FLAG_INITED |
                            CORETEMP_FLAG_PENDING;
                        cpu_mfence();
-                       lwkt_send_ipiq(sc->sc_gd, coretemp_ipifunc, sc);
+                       lwkt_send_ipiq_passive(sc->sc_gd, coretemp_ipifunc, sc);
                        return (-1);
                } else {
                        if (sc->sc_flags & CORETEMP_FLAG_PENDING) {
@@ -364,7 +364,7 @@ coretemp_get_temp(device_t dev)
 
        if (sc->sc_flags & CORETEMP_FLAG_PENDING) {
                cpu_mfence();
-               lwkt_send_ipiq(sc->sc_gd, coretemp_ipifunc, sc);
+               lwkt_send_ipiq_passive(sc->sc_gd, coretemp_ipifunc, sc);
        }
 
        return (temp);