From fa19fe52dbe63a1776e3f3c0dec5f924bafa8bc7 Mon Sep 17 00:00:00 2001 From: chs Date: Fri, 24 Nov 2000 03:59:07 +0000 Subject: adjust the spinlock macros in the non-MULTIPROCESSOR, non-LOCKDEBUG case so that gcc will think that static spinlock are used. this allows us to remove the ugly conditionalization of static spinlock declarations. --- sys/dev/pci/cy82c693.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/pci/cy82c693.c b/sys/dev/pci/cy82c693.c index 153939bbbcc..45c3f31bfe2 100644 --- a/sys/dev/pci/cy82c693.c +++ b/sys/dev/pci/cy82c693.c @@ -1,4 +1,4 @@ -/* $NetBSD: cy82c693.c,v 1.1 2000/06/06 03:07:39 thorpej Exp $ */ +/* $NetBSD: cy82c693.c,v 1.2 2000/11/24 03:59:08 chs Exp $ */ /*- * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -43,7 +43,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: cy82c693.c,v 1.1 2000/06/06 03:07:39 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cy82c693.c,v 1.2 2000/11/24 03:59:08 chs Exp $"); #include "opt_multiprocessor.h" #include "opt_lockdebug.h" @@ -64,9 +64,7 @@ __KERNEL_RCSID(0, "$NetBSD: cy82c693.c,v 1.1 2000/06/06 03:07:39 thorpej Exp $") static struct cy82c693_handle cyhc_handle; static int cyhc_initialized; -#if defined(MULTIPROCESSOR) || defined(LOCKDEBUG) static struct simplelock cyhc_slock = SIMPLELOCK_INITIALIZER; -#endif #define CYHC_LOCK(s) \ do { \ -- cgit