]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[NET] netconsole: Use netif_running() in write_msg()
authorSatyam Sharma <satyam@infradead.org>
Fri, 10 Aug 2007 22:30:31 +0000 (15:30 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:48:03 +0000 (16:48 -0700)
commit0cc120bea1d4ba3893a26c70d271e89f928b8a97
tree5ff99a2211acc2886889b994d1dd3b9e7b1ce892
parentd2b60881e28072109601c373abd1085499ccfef0
[NET] netconsole: Use netif_running() in write_msg()

Based upon initial work by Keiichi Kii <k-keiichi@bx.jp.nec.com>.

Avoid unnecessarily disabling interrupts and calling netpoll_send_udp() if the
corresponding local interface is not up.

Signed-off-by: Satyam Sharma <satyam@infradead.org>
Acked-by: Keiichi Kii <k-keiichi@bx.jp.nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netconsole.c