From 3ddf5c04d114a466a1a1020cc65ef9aa2dbfb3e9 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Mon, 8 Mar 2010 20:54:46 +0000 Subject: 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@ --- sys/arch/sgi/dev/gbe.c | 4 +++- sys/arch/sgi/xbow/odyssey.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/arch/sgi') 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 @@ -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 * @@ -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); } -- cgit v1.2.3