Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/include Put the MI cpu_data at the beginning ...
details: https://anonhg.NetBSD.org/src/rev/a43f2235039c
branches: trunk
changeset: 938216:a43f2235039c
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Sep 04 15:50:09 2020 +0000
description:
Put the MI cpu_data at the beginning of cpu_info so that it is
cache line aligned.
diffstat:
sys/arch/alpha/include/cpu.h | 4 ++--
sys/arch/alpha/include/types.h | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r 4f66e6c3b5df -r a43f2235039c sys/arch/alpha/include/cpu.h
--- a/sys/arch/alpha/include/cpu.h Fri Sep 04 13:39:50 2020 +0000
+++ b/sys/arch/alpha/include/cpu.h Fri Sep 04 15:50:09 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.93 2020/09/04 03:53:12 thorpej Exp $ */
+/* $NetBSD: cpu.h,v 1.94 2020/09/04 15:50:09 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -99,9 +99,9 @@
* Per-cpu information. Data accessed by MI code is marked [MI].
*/
struct cpu_info {
+ struct cpu_data ci_data; /* [MI] general per-cpu data */
struct lwp *ci_curlwp; /* [MI] current owner of the cpu */
struct lwp *ci_onproc; /* [MI] current user LWP / kthread */
- struct cpu_data ci_data; /* [MI] general per-cpu data */
struct cctr_state ci_cc; /* [MI] cycle counter state */
volatile int ci_mtx_count; /* [MI] neg count of spin mutexes */
diff -r 4f66e6c3b5df -r a43f2235039c sys/arch/alpha/include/types.h
--- a/sys/arch/alpha/include/types.h Fri Sep 04 13:39:50 2020 +0000
+++ b/sys/arch/alpha/include/types.h Fri Sep 04 15:50:09 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.56 2020/04/30 20:48:10 skrll Exp $ */
+/* $NetBSD: types.h,v 1.57 2020/09/04 15:50:09 thorpej Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -77,6 +77,7 @@
#define __HAVE_ATOMIC64_OPS
#define __HAVE_MM_MD_DIRECT_MAPPED_IO
#define __HAVE_MM_MD_DIRECT_MAPPED_PHYS
+#define __HAVE_CPU_DATA_FIRST
#define __HAVE_CPU_UAREA_ROUTINES
#define __HAVE_CPU_LWP_SETPRIVATE
#define __HAVE___LWP_GETPRIVATE_FAST
Home |
Main Index |
Thread Index |
Old Index