]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/tty/tty_ldisc.c
tty: Use raw spin lock to protect TTY ldisc administration
authorIvo Sieben <meltedpianoman@gmail.com>
Wed, 17 Oct 2012 12:03:14 +0000 (14:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Oct 2012 18:37:02 +0000 (11:37 -0700)
commitc97399418a25b18943c9910fb28e0ee5ecc3c316
tree0c4d711eae09998e4b4fe4b7efe6036d0cdf896c
parentad3d1e5fc94e1d617298cf9b8fb522e2d219521a
tty: Use raw spin lock to protect TTY ldisc administration

The global "normal" spin lock that guards the line discipline
administration is replaced by a raw spin lock. On a PREEMPT_RT system this
prevents unwanted scheduling overhead around the line discipline administration.

On a 200 MHz AT91SAM9261 processor setup this fixes about 100us of scheduling
overhead on a TTY read or write call.

Signed-off-by: Ivo Sieben <meltedpianoman@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_ldisc.c