diff options
author | Arnd Bergmann <arnd@arndb.de> | 2009-08-06 15:09:28 +0200 |
---|---|---|
committer | Live-CD User <linux@linux.site> | 2009-09-19 22:13:35 +0200 |
commit | e92166517e3ca9bfb416f91e69cf0373b55b6ede (patch) | |
tree | baabe875b5592244a62f39e4fba302a1507502a1 /drivers/char/vt.c | |
parent | n_tty: move echoctl check and clean up logic (diff) | |
download | linux-e92166517e3ca9bfb416f91e69cf0373b55b6ede.tar.xz linux-e92166517e3ca9bfb416f91e69cf0373b55b6ede.zip |
tty: handle VT specific compat ioctls in vt driver
The VT specific compat_ioctl handlers are the only ones
in common code that require the BKL. Moving them into
the vt driver lets us remove the BKL from the other handlers
and cleans up the code.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/char/vt.c')
-rw-r--r-- | drivers/char/vt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/vt.c b/drivers/char/vt.c index 33214d92ca4c..5dfbfa7d7606 100644 --- a/drivers/char/vt.c +++ b/drivers/char/vt.c @@ -2910,6 +2910,9 @@ static const struct tty_operations con_ops = { .flush_chars = con_flush_chars, .chars_in_buffer = con_chars_in_buffer, .ioctl = vt_ioctl, +#ifdef CONFIG_COMPAT + .compat_ioctl = vt_compat_ioctl, +#endif .stop = con_stop, .start = con_start, .throttle = con_throttle, |