diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-03-08 20:54:46 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-03-08 20:54:46 +0000 |
commit | 3ddf5c04d114a466a1a1020cc65ef9aa2dbfb3e9 (patch) | |
tree | c3a02971548279e6de5067ae975cc1da167d7c8b /sys/arch | |
parent | 82a1d7d5f4c16d3fb7a2ce88ec44281ba1f2e04d (diff) |
Correctly initialize all members of struct wsemuldisplaydev_attach_args
before attaching wsdisplay; it was turning out harmless but using more
cpu time for nothing than necessary.
ok deraadt@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sgi/dev/gbe.c | 4 | ||||
-rw-r--r-- | sys/arch/sgi/xbow/odyssey.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/sgi/dev/gbe.c b/sys/arch/sgi/dev/gbe.c index bb1d77865cb..766aa3dc1cd 100644 --- a/sys/arch/sgi/dev/gbe.c +++ b/sys/arch/sgi/dev/gbe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gbe.c,v 1.11 2010/03/07 13:44:24 miod Exp $ */ +/* $OpenBSD: gbe.c,v 1.12 2010/03/08 20:54:42 miod Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Joel Sing <jsing@openbsd.org> @@ -244,6 +244,7 @@ gbe_attach(struct device *parent, struct device *self, void *aux) waa.scrdata = &gbe_screenlist; waa.accessops = &gbe_accessops; waa.accesscookie = &gbe_consdata; + waa.defaultscreens = 0; config_found(self, &waa, wsemuldisplaydevprint); return; @@ -413,6 +414,7 @@ gbe_attach(struct device *parent, struct device *self, void *aux) waa.scrdata = &gbe_screenlist; waa.accessops = &gbe_accessops; waa.accesscookie = screen; + waa.defaultscreens = 0; config_found(self, &waa, wsemuldisplaydevprint); return; diff --git a/sys/arch/sgi/xbow/odyssey.c b/sys/arch/sgi/xbow/odyssey.c index f425da0ef19..6c69f1ec420 100644 --- a/sys/arch/sgi/xbow/odyssey.c +++ b/sys/arch/sgi/xbow/odyssey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: odyssey.c,v 1.2 2010/03/07 13:44:26 miod Exp $ */ +/* $OpenBSD: odyssey.c,v 1.3 2010/03/08 20:54:45 miod Exp $ */ /* * Copyright (c) 2009, 2010 Joel Sing <jsing@openbsd.org> * @@ -245,6 +245,7 @@ odyssey_attach(struct device *parent, struct device *self, void *aux) waa.scrdata = &odyssey_screenlist; waa.accessops = &odyssey_accessops; waa.accesscookie = screen; + waa.defaultscreens = 0; config_found(self, &waa, wsemuldisplaydevprint); } |