]> asedeno.scripts.mit.edu Git - linux.git/commit
TTY: sn_console: Replace spin_is_locked() with spin_trylock()
authorLance Roy <ldr709@gmail.com>
Thu, 4 Oct 2018 07:14:04 +0000 (00:14 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Oct 2018 18:06:35 +0000 (11:06 -0700)
commit8ebfe885c65ec82a0b1e955cf99ed62664e84414
treecc5c6c7cabe8c526551c7c43d8d6427fb221f7fa
parent817e9bc8cc04e5c70592525b96812c46c1aa1c46
TTY: sn_console: Replace spin_is_locked() with spin_trylock()

sn_sal_console_write() used spin_is_locked() + spin_lock() to get
achieve the same thing as a spin_trylock(), so simplify it by using that
instead. This is also a step towards possibly removing spin_is_locked().

Signed-off-by: Lance Roy <ldr709@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jslaby@suse.com>
Cc: <linux-serial@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sn_console.c