diff options
| author | chs <chs@NetBSD.org> | 2000-11-24 03:59:07 +0000 |
|---|---|---|
| committer | chs <chs@NetBSD.org> | 2000-11-24 03:59:07 +0000 |
| commit | fa19fe52dbe63a1776e3f3c0dec5f924bafa8bc7 (patch) | |
| tree | d571258add44ab03202b7300bd05a7f146505a85 /sys/dev | |
| parent | f9ed4a5d700b495076aac101f1c59d3f59bef880 (diff) | |
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.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/pci/cy82c693.c | 6 |
1 files changed, 2 insertions, 4 deletions
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 <sys/cdefs.h> /* 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 { \ |
