From: jsg Date: Sat, 2 Jul 2022 14:08:52 +0000 (+0000) Subject: remove machine/lock.h where unused X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0d83e05a84e8da226fd20690d7f4cff5a1694340;p=openbsd remove machine/lock.h where unused 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@ --- diff --git a/sys/arch/alpha/include/lock.h b/sys/arch/alpha/include/lock.h deleted file mode 100644 index c2214df2f71..00000000000 --- a/sys/arch/alpha/include/lock.h +++ /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 index 2ea630a634d..00000000000 --- a/sys/arch/amd64/include/lock.h +++ /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 index c7f3a173ec6..00000000000 --- a/sys/arch/arm/include/lock.h +++ /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 index 35510e3abdb..00000000000 --- a/sys/arch/arm64/include/lock.h +++ /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 - * - * 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 - -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 index 9efccf650f0..00000000000 --- a/sys/arch/armv7/include/lock.h +++ /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 diff --git a/sys/arch/hppa/include/lock.h b/sys/arch/hppa/include/lock.h deleted file mode 100644 index cb7e1edae89..00000000000 --- a/sys/arch/hppa/include/lock.h +++ /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 index 2ea630a634d..00000000000 --- a/sys/arch/i386/include/lock.h +++ /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 index 52562e60771..00000000000 --- a/sys/arch/landisk/include/lock.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: lock.h,v 1.2 2009/11/24 11:59:59 jasper Exp $ */ - -#include diff --git a/sys/arch/loongson/include/lock.h b/sys/arch/loongson/include/lock.h deleted file mode 100644 index 7480bba9e80..00000000000 --- a/sys/arch/loongson/include/lock.h +++ /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 diff --git a/sys/arch/macppc/include/lock.h b/sys/arch/macppc/include/lock.h deleted file mode 100644 index 3d6062974ab..00000000000 --- a/sys/arch/macppc/include/lock.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: lock.h,v 1.1 2007/03/20 20:59:53 kettenis Exp $ */ - -#include diff --git a/sys/arch/mips64/include/lock.h b/sys/arch/mips64/include/lock.h deleted file mode 100644 index e98851abdb1..00000000000 --- a/sys/arch/mips64/include/lock.h +++ /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 - -#endif /* _MIPS64_LOCK_H_ */ diff --git a/sys/arch/octeon/include/lock.h b/sys/arch/octeon/include/lock.h deleted file mode 100644 index 6e8d519fec5..00000000000 --- a/sys/arch/octeon/include/lock.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: lock.h,v 1.1 2010/09/20 06:32:30 syuu Exp $ */ -/* public domain */ -#include diff --git a/sys/arch/powerpc/include/lock.h b/sys/arch/powerpc/include/lock.h deleted file mode 100644 index e3b41ca3188..00000000000 --- a/sys/arch/powerpc/include/lock.h +++ /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 index 97254b0d75e..00000000000 --- a/sys/arch/sh/include/lock.h +++ /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 - -#endif /* !_SH_LOCK_H_ */ diff --git a/sys/arch/sparc64/include/lock.h b/sys/arch/sparc64/include/lock.h deleted file mode 100644 index ef6820871c7..00000000000 --- a/sys/arch/sparc64/include/lock.h +++ /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 - * - * 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_ */