]> rtime.felk.cvut.cz Git - zynq/linux.git/blobdiff - arch/powerpc/platforms/cell/spufs/hw_ops.c
vfs: do bulk POLL* -> EPOLL* replacement
[zynq/linux.git] / arch / powerpc / platforms / cell / spufs / hw_ops.c
index fff58198b5b6e3540aee33fb276e6a6e57673ae3..ae9d24d31eed885a8ff6824cfeabd0c0e69c11d2 100644 (file)
@@ -70,17 +70,17 @@ static __poll_t spu_hw_mbox_stat_poll(struct spu_context *ctx, __poll_t events)
           but first mark any pending interrupts as done so
           we don't get woken up unnecessarily */
 
-       if (events & (POLLIN | POLLRDNORM)) {
+       if (events & (EPOLLIN | EPOLLRDNORM)) {
                if (stat & 0xff0000)
-                       ret |= POLLIN | POLLRDNORM;
+                       ret |= EPOLLIN | EPOLLRDNORM;
                else {
                        spu_int_stat_clear(spu, 2, CLASS2_MAILBOX_INTR);
                        spu_int_mask_or(spu, 2, CLASS2_ENABLE_MAILBOX_INTR);
                }
        }
-       if (events & (POLLOUT | POLLWRNORM)) {
+       if (events & (EPOLLOUT | EPOLLWRNORM)) {
                if (stat & 0x00ff00)
-                       ret = POLLOUT | POLLWRNORM;
+                       ret = EPOLLOUT | EPOLLWRNORM;
                else {
                        spu_int_stat_clear(spu, 2,
                                        CLASS2_MAILBOX_THRESHOLD_INTR);