if (!(((drm_vblank_count(dev, crtc) -
vblwait->request.sequence) <= (1 << 23)) ||
!dev->irq_enabled))
- ret = serialize_sleep(&dev->vblank[crtc].queue,
+ ret = zsleep(&dev->vblank[crtc].queue,
&dev->irq_lock, PCATCH, "vblwtq",
DRM_HZ);
lwkt_serialize_exit(&dev->irq_lock);
panic("sleep in interrupt thread\n");
sc->sc_flags |= IWL2100_F_WAITCMD;
- error = serialize_sleep(sc, ifp->if_serializer, 0, "iwlcmd", 2 * hz);
+ error = zsleep(sc, ifp->if_serializer, 0, "iwlcmd", 2 * hz);
if (!error) {
sc->sc_flags &= ~IWL2100_F_WAITCMD;
if (sc->sc_flags & IWL2100_F_ERROR) {
/*
* Interlocked serializer sleep. An exclusively held serializer must
- * be passed to serialize_sleep(). The function will atomically release
+ * be passed to zsleep(). The function will atomically release
* the serializer and tsleep on the ident, then reacquire the serializer
* and return.
*/
int
-serialize_sleep(void *ident, struct lwkt_serialize *slz, int flags,
- const char *wmesg, int timo)
+zsleep(void *ident, struct lwkt_serialize *slz, int flags,
+ const char *wmesg, int timo)
{
globaldata_t gd = mycpu;
int ret;
* We must still wait for message completion regardless.
*/
if ((flags & PCATCH) && sentabort == 0) {
- error = serialize_sleep(won, port->mpu_serialize, PCATCH,
- "waitmsg", 0);
+ error = zsleep(won, port->mpu_serialize, PCATCH, "waitmsg", 0);
if (error) {
sentabort = error;
lwkt_serialize_exit(port->mpu_serialize);
lwkt_serialize_enter(port->mpu_serialize);
}
} else {
- error = serialize_sleep(won, port->mpu_serialize, 0,
- "waitmsg", 0);
+ error = zsleep(won, port->mpu_serialize, 0, "waitmsg", 0);
}
/* see note at the top on the MSGPORTF_WAITING flag */
}
while ((msg = _lwkt_pollmsg(port)) == NULL) {
port->mp_flags |= MSGPORTF_WAITING;
- error = serialize_sleep(port, port->mpu_serialize, flags,
- "waitport", 0);
+ error = zsleep(port, port->mpu_serialize, flags, "waitport", 0);
/* see note at the top on the MSGPORTF_WAITING flag */
if (error)
return(NULL);
int tsleep (void *, int, const char *, int);
int msleep (void *, struct spinlock *, int, const char *, int);
int mtxsleep (void *, struct mtx *, int, const char *, int);
-int serialize_sleep(void *, struct lwkt_serialize *, int,
- const char *, int);
+int zsleep(void *, struct lwkt_serialize *, int, const char *, int);
void tsleep_interlock (void *, int);
void tsleep_remove (struct thread *);
int lwkt_sleep (const char *, int);