.. | .. |
---|
63 | 63 | #include <linux/if_packet.h> |
---|
64 | 64 | #include <linux/wireless.h> |
---|
65 | 65 | #include <linux/kernel.h> |
---|
| 66 | +#include <linux/delay.h> |
---|
66 | 67 | #include <linux/kmod.h> |
---|
67 | 68 | #include <linux/slab.h> |
---|
68 | 69 | #include <linux/vmalloc.h> |
---|
.. | .. |
---|
668 | 669 | if (BLOCK_NUM_PKTS(pbd)) { |
---|
669 | 670 | while (atomic_read(&pkc->blk_fill_in_prog)) { |
---|
670 | 671 | /* Waiting for skb_copy_bits to finish... */ |
---|
671 | | - cpu_relax(); |
---|
| 672 | + cpu_chill(); |
---|
672 | 673 | } |
---|
673 | 674 | } |
---|
674 | 675 | |
---|
.. | .. |
---|
930 | 931 | if (!(status & TP_STATUS_BLK_TMO)) { |
---|
931 | 932 | while (atomic_read(&pkc->blk_fill_in_prog)) { |
---|
932 | 933 | /* Waiting for skb_copy_bits to finish... */ |
---|
933 | | - cpu_relax(); |
---|
| 934 | + cpu_chill(); |
---|
934 | 935 | } |
---|
935 | 936 | } |
---|
936 | 937 | prb_close_block(pkc, pbd, po, status); |
---|