Skip to content

Commit

Permalink
mac802154: fix NOHZ local_softirq_pending 08 warning
Browse files Browse the repository at this point in the history
When using nanosleep() in an userspace application we get a
ratelimit warning

NOHZ: local_softirq_pending 08

for 10 times.

This patch replaces netif_rx() with netif_rx_ni() which has
to be used from process/softirq context.
The process/softirq context will be called from fakelb driver.

See linux-kernel commit 481a819 for similar fix.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Alexander Aring authored and David S. Miller committed Jan 4, 2013
1 parent db2b620 commit 5ff3fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac802154/wpan.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ void mac802154_wpan_setup(struct net_device *dev)

static int mac802154_process_data(struct net_device *dev, struct sk_buff *skb)
{
return netif_rx(skb);
return netif_rx_ni(skb);
}

static int
Expand Down

0 comments on commit 5ff3fec

Please sign in to comment.