hvsi.c (aa1262b3876ec5249ff464618a7dcd46b3ca54e2) | hvsi.c (6aad04f21374633bd8cecf25024553d1e11a9522) |
---|---|
1/* 2 * Copyright (C) 2004 Hollis Blanchard <hollisb@us.ibm.com>, IBM 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * --- 847 unchanged lines hidden (view full) --- 856 } 857} 858 859/* hvsi_write_worker will keep rescheduling itself until outbuf is empty */ 860static void hvsi_write_worker(struct work_struct *work) 861{ 862 struct hvsi_struct *hp = 863 container_of(work, struct hvsi_struct, writer.work); | 1/* 2 * Copyright (C) 2004 Hollis Blanchard <hollisb@us.ibm.com>, IBM 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * --- 847 unchanged lines hidden (view full) --- 856 } 857} 858 859/* hvsi_write_worker will keep rescheduling itself until outbuf is empty */ 860static void hvsi_write_worker(struct work_struct *work) 861{ 862 struct hvsi_struct *hp = 863 container_of(work, struct hvsi_struct, writer.work); |
864 struct tty_struct *tty; | |
865 unsigned long flags; 866#ifdef DEBUG 867 static long start_j = 0; 868 869 if (start_j == 0) 870 start_j = jiffies; 871#endif /* DEBUG */ 872 --- 17 unchanged lines hidden (view full) --- 890 schedule_delayed_work(&hp->writer, 10); 891 else { 892#ifdef DEBUG 893 pr_debug("%s: outbuf emptied after %li jiffies\n", __func__, 894 jiffies - start_j); 895 start_j = 0; 896#endif /* DEBUG */ 897 wake_up_all(&hp->emptyq); | 864 unsigned long flags; 865#ifdef DEBUG 866 static long start_j = 0; 867 868 if (start_j == 0) 869 start_j = jiffies; 870#endif /* DEBUG */ 871 --- 17 unchanged lines hidden (view full) --- 889 schedule_delayed_work(&hp->writer, 10); 890 else { 891#ifdef DEBUG 892 pr_debug("%s: outbuf emptied after %li jiffies\n", __func__, 893 jiffies - start_j); 894 start_j = 0; 895#endif /* DEBUG */ 896 wake_up_all(&hp->emptyq); |
898 tty = tty_port_tty_get(&hp->port); 899 if (tty) { 900 tty_wakeup(tty); 901 tty_kref_put(tty); 902 } | 897 tty_port_tty_wakeup(&hp->port); |
903 } 904 905out: 906 spin_unlock_irqrestore(&hp->lock, flags); 907} 908 909static int hvsi_write_room(struct tty_struct *tty) 910{ --- 316 unchanged lines hidden --- | 898 } 899 900out: 901 spin_unlock_irqrestore(&hp->lock, flags); 902} 903 904static int hvsi_write_room(struct tty_struct *tty) 905{ --- 316 unchanged lines hidden --- |