remove machine/lock.h where unused
authorjsg <jsg@openbsd.org>
Sat, 2 Jul 2022 14:08:52 +0000 (14:08 +0000)
committerjsg <jsg@openbsd.org>
Sat, 2 Jul 2022 14:08:52 +0000 (14:08 +0000)
Previously for __cpu_simple_lock parts.  Now only hppa and m88k use
__cpu_simple_lock (and hppa uses atomic.h for it).

ok miod@ visa@

15 files changed:
sys/arch/alpha/include/lock.h [deleted file]
sys/arch/amd64/include/lock.h [deleted file]
sys/arch/arm/include/lock.h [deleted file]
sys/arch/arm64/include/lock.h [deleted file]
sys/arch/armv7/include/lock.h [deleted file]
sys/arch/hppa/include/lock.h [deleted file]
sys/arch/i386/include/lock.h [deleted file]
sys/arch/landisk/include/lock.h [deleted file]
sys/arch/loongson/include/lock.h [deleted file]
sys/arch/macppc/include/lock.h [deleted file]
sys/arch/mips64/include/lock.h [deleted file]
sys/arch/octeon/include/lock.h [deleted file]
sys/arch/powerpc/include/lock.h [deleted file]
sys/arch/sh/include/lock.h [deleted file]
sys/arch/sparc64/include/lock.h [deleted file]

diff --git a/sys/arch/alpha/include/lock.h b/sys/arch/alpha/include/lock.h
deleted file mode 100644 (file)
index c2214df..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/* $OpenBSD: lock.h,v 1.10 2017/05/29 14:19:49 mpi Exp $       */
-/* $NetBSD: lock.h,v 1.16 2001/12/17 23:34:57 thorpej Exp $ */
-
-/*-
- * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
- * NASA Ames Research Center.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- * Machine-dependent spin lock operations.
- */
-
-#ifndef _MACHINE_LOCK_H_
-#define        _MACHINE_LOCK_H_
-
-#endif /* _MACHINE_LOCK_H_ */
diff --git a/sys/arch/amd64/include/lock.h b/sys/arch/amd64/include/lock.h
deleted file mode 100644 (file)
index 2ea630a..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-/*     $OpenBSD: lock.h,v 1.13 2017/05/29 14:19:49 mpi Exp $   */
-
-/* public domain */
-
-#ifndef _MACHINE_LOCK_H_
-#define        _MACHINE_LOCK_H_
-
-#endif /* _MACHINE_LOCK_H_ */
diff --git a/sys/arch/arm/include/lock.h b/sys/arch/arm/include/lock.h
deleted file mode 100644 (file)
index c7f3a17..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-/*     $OpenBSD: lock.h,v 1.6 2016/04/03 10:43:23 jsg Exp $    */
-
-/* public domain */
-
-#ifndef _ARM_LOCK_H_
-#define        _ARM_LOCK_H_
-
-#endif /* _ARM_LOCK_H_ */
diff --git a/sys/arch/arm64/include/lock.h b/sys/arch/arm64/include/lock.h
deleted file mode 100644 (file)
index 35510e3..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/* $OpenBSD: lock.h,v 1.1 2016/12/17 23:38:33 patrick Exp $ */
-/*
- * Copyright (c) 2014 Patrick Wildt <patrick@blueri.se>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-/*
- * Machine-dependent spin lock operations.
- */
-
-#ifndef        _MACHINE_LOCK_H_
-#define        _MACHINE_LOCK_H_
-
-#include <machine/atomic.h>
-
-typedef __volatile int          __cpu_simple_lock_t;
-
-#define __SIMPLELOCK_LOCKED     1
-#define __SIMPLELOCK_UNLOCKED   0
-
-#endif /* _MACHINE_LOCK_H_ */
diff --git a/sys/arch/armv7/include/lock.h b/sys/arch/armv7/include/lock.h
deleted file mode 100644 (file)
index 9efccf6..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-/*     $OpenBSD: lock.h,v 1.1 2013/09/04 14:38:28 patrick Exp $        */
-/*     $NetBSD: lock.h,v 1.3 2001/11/25 15:55:57 thorpej Exp $ */
-
-#include <arm/lock.h>
diff --git a/sys/arch/hppa/include/lock.h b/sys/arch/hppa/include/lock.h
deleted file mode 100644 (file)
index cb7e1ed..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-/*     $OpenBSD: lock.h,v 1.9 2015/02/11 00:14:11 dlg Exp $    */
-
-/* public domain */
-
-#ifndef        _MACHINE_LOCK_H_
-#define        _MACHINE_LOCK_H_
-
-#endif /* _MACHINE_LOCK_H_ */
diff --git a/sys/arch/i386/include/lock.h b/sys/arch/i386/include/lock.h
deleted file mode 100644 (file)
index 2ea630a..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-/*     $OpenBSD: lock.h,v 1.13 2017/05/29 14:19:49 mpi Exp $   */
-
-/* public domain */
-
-#ifndef _MACHINE_LOCK_H_
-#define        _MACHINE_LOCK_H_
-
-#endif /* _MACHINE_LOCK_H_ */
diff --git a/sys/arch/landisk/include/lock.h b/sys/arch/landisk/include/lock.h
deleted file mode 100644 (file)
index 52562e6..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-/*     $OpenBSD: lock.h,v 1.2 2009/11/24 11:59:59 jasper Exp $ */
-
-#include <sh/lock.h>
diff --git a/sys/arch/loongson/include/lock.h b/sys/arch/loongson/include/lock.h
deleted file mode 100644 (file)
index 7480bba..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-/* $OpenBSD: lock.h,v 1.1.1.1 2009/07/31 09:26:25 miod Exp $ */
-/* public domain */
-#include <mips64/lock.h>
diff --git a/sys/arch/macppc/include/lock.h b/sys/arch/macppc/include/lock.h
deleted file mode 100644 (file)
index 3d60629..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-/*     $OpenBSD: lock.h,v 1.1 2007/03/20 20:59:53 kettenis Exp $       */
-
-#include <powerpc/lock.h>
diff --git a/sys/arch/mips64/include/lock.h b/sys/arch/mips64/include/lock.h
deleted file mode 100644 (file)
index e98851a..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-/*     $OpenBSD: lock.h,v 1.8 2017/05/19 00:52:49 visa Exp $   */
-
-/* public domain */
-
-#ifndef        _MIPS64_LOCK_H_
-#define        _MIPS64_LOCK_H_
-
-#include <sys/atomic.h>
-
-#endif /* _MIPS64_LOCK_H_ */
diff --git a/sys/arch/octeon/include/lock.h b/sys/arch/octeon/include/lock.h
deleted file mode 100644 (file)
index 6e8d519..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-/* $OpenBSD: lock.h,v 1.1 2010/09/20 06:32:30 syuu Exp $ */
-/* public domain */
-#include <mips64/lock.h>
diff --git a/sys/arch/powerpc/include/lock.h b/sys/arch/powerpc/include/lock.h
deleted file mode 100644 (file)
index e3b41ca..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*     $OpenBSD: lock.h,v 1.8 2017/05/29 14:19:50 mpi Exp $    */
-/*     $NetBSD: lock.h,v 1.8 2005/12/28 19:09:29 perry Exp $   */
-
-/*-
- * Copyright (c) 2000 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Jason R. Thorpe.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- * Machine-dependent spin lock operations.
- */
-
-#ifndef _POWERPC_LOCK_H_
-#define _POWERPC_LOCK_H_
-
-#endif /* _POWERPC_LOCK_H_ */
diff --git a/sys/arch/sh/include/lock.h b/sys/arch/sh/include/lock.h
deleted file mode 100644 (file)
index 97254b0..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*     $OpenBSD: lock.h,v 1.4 2013/05/21 20:05:30 tedu Exp $   */
-/*     $NetBSD: lock.h,v 1.10 2006/01/03 01:29:46 uwe Exp $    */
-
-/*-
- * Copyright (c) 2002 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Gregory McGarry.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- * Machine-dependent spin lock operations.
- */
-
-#ifndef _SH_LOCK_H_
-#define        _SH_LOCK_H_
-
-#include <sh/atomic.h>
-
-#endif /* !_SH_LOCK_H_ */
diff --git a/sys/arch/sparc64/include/lock.h b/sys/arch/sparc64/include/lock.h
deleted file mode 100644 (file)
index ef68208..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-/*     $OpenBSD: lock.h,v 1.12 2017/05/29 14:19:50 mpi Exp $   */
-/*
- * Copyright (c) 2012 Mark Kettenis <kettenis@openbsd.org>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-#ifndef        _MACHINE_LOCK_H_
-#define        _MACHINE_LOCK_H_
-
-#endif /* _MACHINE_LOCK_H_ */