|
@@ -585,18 +585,8 @@ struct sk_buff *__qdf_nbuf_alloc(qdf_device_t osdev, size_t size, int reserve,
|
|
if (align)
|
|
if (align)
|
|
size += (align - 1);
|
|
size += (align - 1);
|
|
|
|
|
|
- if (in_interrupt() || irqs_disabled() || in_atomic()) {
|
|
|
|
|
|
+ if (in_interrupt() || irqs_disabled() || in_atomic())
|
|
flags = GFP_ATOMIC;
|
|
flags = GFP_ATOMIC;
|
|
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)
|
|
|
|
- /*
|
|
|
|
- * Observed that kcompactd burns out CPU to make order-3 page.
|
|
|
|
- *__netdev_alloc_skb has 4k page fallback option just in case of
|
|
|
|
- * failing high order page allocation so we don't need to be
|
|
|
|
- * hard. Make kcompactd rest in piece.
|
|
|
|
- */
|
|
|
|
- flags = flags & ~__GFP_KSWAPD_RECLAIM;
|
|
|
|
-#endif
|
|
|
|
- }
|
|
|
|
|
|
|
|
skb = alloc_skb(size, flags);
|
|
skb = alloc_skb(size, flags);
|
|
|
|
|