diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-10-26 16:29:50 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-10-26 16:29:50 +0000 |
commit | 794a19578ba4218f929e12ece1c56d4fa2040721 (patch) | |
tree | 3c122c2a906276ee1e679bb243d82b3fdc6b7a71 /sys/dev/usb/uhci.c | |
parent | 2cad8975ccb468e7c45b2e66a6571484f87bf3c4 (diff) |
Improve unhibernate performance (30% on some machines, another upcoming diff
shows gains up to 50%) by skipping attach of irrelevant devices, which are
tagged CD_SKIPHIBERNATE in the per-driver cfdriver. In particular, usb devices
are not attached, so they don't need to detach during the suspend-unpack-resume.
New bootblocks are required (which tell the kernel it's job is unhibernate
before configure runs)
tested by various
Diffstat (limited to 'sys/dev/usb/uhci.c')
-rw-r--r-- | sys/dev/usb/uhci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index ff4eb530fcb..df08caf2d8d 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhci.c,v 1.152 2020/04/03 20:11:47 patrick Exp $ */ +/* $OpenBSD: uhci.c,v 1.153 2021/10/26 16:29:49 deraadt Exp $ */ /* $NetBSD: uhci.c,v 1.172 2003/02/23 04:19:26 simonb Exp $ */ /* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */ @@ -55,7 +55,7 @@ /*#define UHCI_CTL_LOOP */ struct cfdriver uhci_cd = { - NULL, "uhci", DV_DULL + NULL, "uhci", DV_DULL, CD_SKIPHIBERNATE }; #ifdef UHCI_DEBUG |