]> rtime.felk.cvut.cz Git - zynq/linux.git/blobdiff - net/packet/af_packet.c
Apply preempt_rt patch-4.9-rt1.patch.xz
[zynq/linux.git] / net / packet / af_packet.c
index dd2332390c45bbff7c3fc5d259453f2e1ca352bf..f6a703b25b6c2bc1aaa33276f4a1b18a7f9f60b3 100644 (file)
@@ -63,6 +63,7 @@
 #include <linux/if_packet.h>
 #include <linux/wireless.h>
 #include <linux/kernel.h>
+#include <linux/delay.h>
 #include <linux/kmod.h>
 #include <linux/slab.h>
 #include <linux/vmalloc.h>
@@ -694,7 +695,7 @@ static void prb_retire_rx_blk_timer_expired(unsigned long data)
        if (BLOCK_NUM_PKTS(pbd)) {
                while (atomic_read(&pkc->blk_fill_in_prog)) {
                        /* Waiting for skb_copy_bits to finish... */
-                       cpu_relax();
+                       cpu_chill();
                }
        }
 
@@ -956,7 +957,7 @@ static void prb_retire_current_block(struct tpacket_kbdq_core *pkc,
                if (!(status & TP_STATUS_BLK_TMO)) {
                        while (atomic_read(&pkc->blk_fill_in_prog)) {
                                /* Waiting for skb_copy_bits to finish... */
-                               cpu_relax();
+                               cpu_chill();
                        }
                }
                prb_close_block(pkc, pbd, po, status);