]> rtime.felk.cvut.cz Git - zynq/linux.git/blobdiff - drivers/infiniband/hw/qib/qib_file_ops.c
vfs: do bulk POLL* -> EPOLL* replacement
[zynq/linux.git] / drivers / infiniband / hw / qib / qib_file_ops.c
index f7593b5e2b7617f4e82c6149164ed6ba54db648f..52c29db3a2f4a08dbfe9b6504c8ecc7768d3c34a 100644 (file)
@@ -1085,7 +1085,7 @@ static __poll_t qib_poll_urgent(struct qib_ctxtdata *rcd,
 
        spin_lock_irq(&dd->uctxt_lock);
        if (rcd->urgent != rcd->urgent_poll) {
-               pollflag = POLLIN | POLLRDNORM;
+               pollflag = EPOLLIN | EPOLLRDNORM;
                rcd->urgent_poll = rcd->urgent;
        } else {
                pollflag = 0;
@@ -1111,7 +1111,7 @@ static __poll_t qib_poll_next(struct qib_ctxtdata *rcd,
                dd->f_rcvctrl(rcd->ppd, QIB_RCVCTRL_INTRAVAIL_ENB, rcd->ctxt);
                pollflag = 0;
        } else
-               pollflag = POLLIN | POLLRDNORM;
+               pollflag = EPOLLIN | EPOLLRDNORM;
        spin_unlock_irq(&dd->uctxt_lock);
 
        return pollflag;
@@ -1124,13 +1124,13 @@ static __poll_t qib_poll(struct file *fp, struct poll_table_struct *pt)
 
        rcd = ctxt_fp(fp);
        if (!rcd)
-               pollflag = POLLERR;
+               pollflag = EPOLLERR;
        else if (rcd->poll_type == QIB_POLL_TYPE_URGENT)
                pollflag = qib_poll_urgent(rcd, fp, pt);
        else  if (rcd->poll_type == QIB_POLL_TYPE_ANYRCV)
                pollflag = qib_poll_next(rcd, fp, pt);
        else /* invalid */
-               pollflag = POLLERR;
+               pollflag = EPOLLERR;
 
        return pollflag;
 }