summaryrefslogtreecommitdiffstats
path: root/drivers/s390/char/raw3270.c
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2014-03-21 09:25:24 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2014-03-26 10:55:33 +0100
commit233faec97a1dfef1f4bc271f9e5d33f2ba4845ca (patch)
treecd42c8828846c9c73ecf867f9604af17bf7055f7 /drivers/s390/char/raw3270.c
parents390/mm: remove unecessary parameter from pgste_ipte_notify (diff)
downloadlinux-233faec97a1dfef1f4bc271f9e5d33f2ba4845ca.tar.xz
linux-233faec97a1dfef1f4bc271f9e5d33f2ba4845ca.zip
s390/con3270: optionally disable auto update
This patch adds a parameter 'auto_update' to the con3270 driver, causing the 'auto_update' feature to be disabled if unset. The 'auto_update' feature will cause the con3270 driver to switch to the console view whenever new system messages are displayed, which makes working on the 3270 terminal awkward. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/char/raw3270.c')
-rw-r--r--drivers/s390/char/raw3270.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/s390/char/raw3270.c b/drivers/s390/char/raw3270.c
index 041c65bc7bb1..9f849df4381e 100644
--- a/drivers/s390/char/raw3270.c
+++ b/drivers/s390/char/raw3270.c
@@ -276,6 +276,15 @@ __raw3270_start(struct raw3270 *rp, struct raw3270_view *view,
}
int
+raw3270_view_active(struct raw3270_view *view)
+{
+ struct raw3270 *rp = view->dev;
+
+ return rp && rp->view == view &&
+ !test_bit(RAW3270_FLAGS_FROZEN, &rp->flags);
+}
+
+int
raw3270_start(struct raw3270_view *view, struct raw3270_request *rq)
{
unsigned long flags;