diff options
Diffstat (limited to 'sys/kern/subr_log.c')
-rw-r--r-- | sys/kern/subr_log.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/kern/subr_log.c b/sys/kern/subr_log.c index 8580f79..d63dfb6 100644 --- a/sys/kern/subr_log.c +++ b/sys/kern/subr_log.c @@ -56,7 +56,6 @@ #define LOG_ASYNC 0x04 #define LOG_RDWAIT 0x08 -#define LOG_NEEDWAKEUP 0x10 static d_open_t logopen; static d_close_t logclose; @@ -186,22 +185,13 @@ logpoll(dev_t dev, int events, struct proc *p) return (revents); } -void -logwakeup(void) -{ - - if (!log_open) - return; - logsoftc.sc_state |= LOG_NEEDWAKEUP; -} - static void logtimeout(void *arg) { - if ((logsoftc.sc_state & LOG_NEEDWAKEUP) == 0) + if (msgbuftrigger == 0) return; - logsoftc.sc_state &= ~LOG_NEEDWAKEUP; + msgbuftrigger = 0; if (!log_open) return; selwakeup(&logsoftc.sc_selp); |