]> git.baikalelectronics.ru Git - kernel.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)
commitdf62946ebcc7a029076d08b9577688a044f4a500
tree5ff99a2211acc2886889b994d1dd3b9e7b1ce892
parent7138ba8db23e4bedc6be1df7c0dbc0496ca106ae
[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