diff options
author | Scott Soule Cheloha <cheloha@cvs.openbsd.org> | 2022-11-08 14:49:21 +0000 |
---|---|---|
committer | Scott Soule Cheloha <cheloha@cvs.openbsd.org> | 2022-11-08 14:49:21 +0000 |
commit | 52795ea172afc3bdb6a9c5ba1216a090cba85ed5 (patch) | |
tree | e2a65430a975e337c723c108cf8dcb200bd66e50 /sys/arch/i386/include/cpu.h | |
parent | ea07ebefe4efd98cef68e1179e8a693515001ce6 (diff) |
i386: add delay_fini()
Not all of the clocks with a delay(9) implementation necessarily keep
ticking across suspend/resume. We need a clean way to reverse
delay_init() during suspend when those clocks stop ticking.
Hence, delay_fini(). delay_fini() resets delay_func() to
i8254_delay() if the given function pointer is the active delay(9)
implementation.
ok mlarkin@
Diffstat (limited to 'sys/arch/i386/include/cpu.h')
-rw-r--r-- | sys/arch/i386/include/cpu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/i386/include/cpu.h b/sys/arch/i386/include/cpu.h index 68bc3542a0f..6d707fc2d77 100644 --- a/sys/arch/i386/include/cpu.h +++ b/sys/arch/i386/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.179 2022/08/29 02:58:13 jsg Exp $ */ +/* $OpenBSD: cpu.h,v 1.180 2022/11/08 14:49:20 cheloha Exp $ */ /* $NetBSD: cpu.h,v 1.35 1996/05/05 19:29:26 christos Exp $ */ /*- @@ -302,6 +302,7 @@ void signotify(struct proc *); * We need a machine-independent name for this. */ extern void (*delay_func)(int); +void delay_fini(void(*)(int)); void delay_init(void(*)(int), int); struct timeval; |