[NET] netconsole: Use netif_running() in write_msg()
[NET] netconsole: Use netif_running() in write_msg()

Based upon initial work by Keiichi Kii <13f128951b64a39a6efb8135a8cb8fd3e86618aa@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 <0b696d0ba2cde538886f3cb2692cee38c087735e@infradead.org>
Acked-by: Keiichi Kii <13f128951b64a39a6efb8135a8cb8fd3e86618aa@bx.jp.nec.com>
Signed-off-by: Andrew Morton <5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org>
Signed-off-by: David S. Miller <fe08d3c717adf2ae63592e4c9aec6e3e404d8e3e@davemloft.net>

TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas