]> git.baikalelectronics.ru Git - kernel.git/commit
tty: Set correct tty name in 'active' sysfs attribute
authorHannes Reinecke <hare@suse.de>
Fri, 7 Feb 2014 10:38:30 +0000 (11:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Feb 2014 16:40:54 +0000 (08:40 -0800)
commit768b0e64186dbdda6eac0ce5bccf5078c0292d46
tree52ecd6d59354df0c3b26c9f3236f668ed26af1c7
parent8942dce4e9668753818d62b1154e9b3845fd9fd9
tty: Set correct tty name in 'active' sysfs attribute

The 'active' sysfs attribute should refer to the currently active tty
devices the console is running on, not the currently active console.

The console structure doesn't refer to any device in sysfs, only the tty
the console is running on has.  So we need to print out the tty names in
'active', not the console names.

This resolves an issue on s390 platforms in determining the correct
console device to use.

Cc: Lennart Poettering <lennart@poettering.net>
Cc: Kay Sievers <kay@vrfy.org>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Werner Fink <werner@suse.de>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-tty
drivers/tty/tty_io.c