From: Oliver Hartkopp Date: Tue, 15 Sep 2009 08:31:34 +0000 (-0700) Subject: can: fix NOHZ local_softirq_pending 08 warning X-Git-Tag: v2.6.32-rc1~657^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=481a8199142c050b72bff8a1956a49fd0a75bbe0;p=pandora-kernel.git can: fix NOHZ local_softirq_pending 08 warning When using nanosleep() in an userspace application we get a ratelimit warning NOHZ: local_softirq_pending 08 for 10 times. The echo of CAN frames is done from process context and softirq context only. Therefore the usage of netif_rx() was wrong (for years). This patch replaces netif_rx() with netif_rx_ni() which has to be used from process/softirq context. It also adds a missing comment that can_send() must no be used from hardirq context. Signed-off-by: Oliver Hartkopp Signed-off-by: Urs Thuermann Signed-off-by: David S. Miller --- Reading git-diff-tree failed