hc
2023-11-06 15ade055295d13f95d49e3d99b09f3bbfb4a43e7
kernel/net/packet/af_packet.c
....@@ -63,6 +63,7 @@
6363 #include <linux/if_packet.h>
6464 #include <linux/wireless.h>
6565 #include <linux/kernel.h>
66
+#include <linux/delay.h>
6667 #include <linux/kmod.h>
6768 #include <linux/slab.h>
6869 #include <linux/vmalloc.h>
....@@ -668,7 +669,7 @@
668669 if (BLOCK_NUM_PKTS(pbd)) {
669670 while (atomic_read(&pkc->blk_fill_in_prog)) {
670671 /* Waiting for skb_copy_bits to finish... */
671
- cpu_relax();
672
+ cpu_chill();
672673 }
673674 }
674675
....@@ -930,7 +931,7 @@
930931 if (!(status & TP_STATUS_BLK_TMO)) {
931932 while (atomic_read(&pkc->blk_fill_in_prog)) {
932933 /* Waiting for skb_copy_bits to finish... */
933
- cpu_relax();
934
+ cpu_chill();
934935 }
935936 }
936937 prb_close_block(pkc, pbd, po, status);