From 3565071f226432336a54d0193d729fa4508a3394 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 11 Apr 2024 10:28:00 +0200 Subject: Adding debian version 6.6.15-2. Signed-off-by: Daniel Baumann --- ...28-tty-sysfs-Add-nbcon-support-for-active.patch | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 debian/patches-rt/0128-tty-sysfs-Add-nbcon-support-for-active.patch (limited to 'debian/patches-rt/0128-tty-sysfs-Add-nbcon-support-for-active.patch') diff --git a/debian/patches-rt/0128-tty-sysfs-Add-nbcon-support-for-active.patch b/debian/patches-rt/0128-tty-sysfs-Add-nbcon-support-for-active.patch new file mode 100644 index 0000000000..f8b285f432 --- /dev/null +++ b/debian/patches-rt/0128-tty-sysfs-Add-nbcon-support-for-active.patch @@ -0,0 +1,33 @@ +From: John Ogness +Date: Fri, 22 Sep 2023 14:31:09 +0000 +Subject: [PATCH 128/134] tty: sysfs: Add nbcon support for 'active' +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/6.6/older/patches-6.6.7-rt18.tar.xz + +Allow the 'active' attribute to list nbcon consoles. + +Signed-off-by: John Ogness +Signed-off-by: Sebastian Andrzej Siewior +--- + drivers/tty/tty_io.c | 11 +++++++++-- + 1 file changed, 9 insertions(+), 2 deletions(-) + +--- a/drivers/tty/tty_io.c ++++ b/drivers/tty/tty_io.c +@@ -3540,8 +3540,15 @@ static ssize_t show_cons_active(struct d + for_each_console(c) { + if (!c->device) + continue; +- if (!c->write) +- continue; ++ if (c->flags & CON_NBCON) { ++ if (!c->write_atomic && ++ !(c->write_thread && c->kthread)) { ++ continue; ++ } ++ } else { ++ if (!c->write) ++ continue; ++ } + if ((c->flags & CON_ENABLED) == 0) + continue; + cs[i++] = c; -- cgit v1.2.3