Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/aarch64 Remove __HAVE_CPU_LWP_SETPRIVATE from aarch64



details:   https://anonhg.NetBSD.org/src/rev/4226002b7600
branches:  trunk
changeset: 1005398:4226002b7600
user:      kamil <kamil%NetBSD.org@localhost>
date:      Fri Dec 06 18:16:22 2019 +0000

description:
Remove __HAVE_CPU_LWP_SETPRIVATE from aarch64

aarch64 specific cpu_lwp_setprivate() is redundant with its caller
lwp_setprivate() and there are no MD bits.

diffstat:

 sys/arch/aarch64/aarch64/sys_machdep.c |  11 ++---------
 sys/arch/aarch64/include/types.h       |   3 +--
 2 files changed, 3 insertions(+), 11 deletions(-)

diffs (46 lines):

diff -r 56f1b50eb9f4 -r 4226002b7600 sys/arch/aarch64/aarch64/sys_machdep.c
--- a/sys/arch/aarch64/aarch64/sys_machdep.c    Fri Dec 06 18:15:57 2019 +0000
+++ b/sys/arch/aarch64/aarch64/sys_machdep.c    Fri Dec 06 18:16:22 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_machdep.c,v 1.3 2018/07/17 00:36:30 christos Exp $ */
+/* $NetBSD: sys_machdep.c,v 1.4 2019/12/06 18:16:22 kamil Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: sys_machdep.c,v 1.3 2018/07/17 00:36:30 christos Exp $");
+__KERNEL_RCSID(1, "$NetBSD: sys_machdep.c,v 1.4 2019/12/06 18:16:22 kamil Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -47,10 +47,3 @@
 {
        return EINVAL;
 }
-
-int
-cpu_lwp_setprivate(lwp_t *l, void *addr)
-{
-       l->l_private = addr;
-       return 0;
-}
diff -r 56f1b50eb9f4 -r 4226002b7600 sys/arch/aarch64/include/types.h
--- a/sys/arch/aarch64/include/types.h  Fri Dec 06 18:15:57 2019 +0000
+++ b/sys/arch/aarch64/include/types.h  Fri Dec 06 18:16:22 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.12 2018/10/13 08:32:36 ryo Exp $ */
+/* $NetBSD: types.h,v 1.13 2019/12/06 18:16:22 kamil Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -100,7 +100,6 @@
 #define __HAVE_NEW_STYLE_BUS_H
 #define __HAVE_MINIMAL_EMUL
 #define __HAVE_CPU_DATA_FIRST
-#define __HAVE_CPU_LWP_SETPRIVATE
 #define __HAVE___LWP_GETPRIVATE_FAST
 #define __HAVE_COMMON___TLS_GET_ADDR
 #define __HAVE_TLS_VARIANT_I



Home | Main Index | Thread Index | Old Index