From owner-freebsd-commit Fri Jul 21 18:30:53 1995 Return-Path: commit-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id SAA03795 for commit-outgoing; Fri, 21 Jul 1995 18:30:53 -0700 Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id SAA03782 for cvs-sys-outgoing; Fri, 21 Jul 1995 18:30:50 -0700 Received: (from bde@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id SAA03772 ; Fri, 21 Jul 1995 18:30:46 -0700 Date: Fri, 21 Jul 1995 18:30:46 -0700 From: Bruce Evans Message-Id: <199507220130.SAA03772@freefall.cdrom.com> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/sys tty.h Sender: commit-owner@FreeBSD.org Precedence: bulk bde 95/07/21 18:30:45 Modified: sys/gnu/isdn iitty.c sys/i386/isa cx.c cy.c rc.c sio.c syscons.c sys/i386/isa/pcvt pcvt_drv.c sys/kern tty.c tty_pty.c sys/sys tty.h Log: Move the inline code for waking up writers to a new function ttwwakeup(). The conditions for doing the wakeup will soon become more complicated and I don't want them duplicated in all drivers. It's probably not worth making ttwwakeup() a macro or an inline function. The cost of the function call is relatively small when there is a process to wake up. There is usually a process to wake up for large writes and the system call overhead dwarfs the function call overhead for small writes.