Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Add node/core/smt ID numbers to struct cpu_data, wil...
details: https://anonhg.NetBSD.org/src/rev/9ecc5dab7b10
branches: trunk
changeset: 754711:9ecc5dab7b10
user: rmind <rmind%NetBSD.org@localhost>
date: Sun May 09 20:18:40 2010 +0000
description:
Add node/core/smt ID numbers to struct cpu_data, will be filled by MD.
OK matt@.
diffstat:
sys/sys/cpu_data.h | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r cf3c6ab271c2 -r 9ecc5dab7b10 sys/sys/cpu_data.h
--- a/sys/sys/cpu_data.h Sun May 09 18:53:03 2010 +0000
+++ b/sys/sys/cpu_data.h Sun May 09 20:18:40 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_data.h,v 1.29 2010/04/25 15:55:24 ad Exp $ */
+/* $NetBSD: cpu_data.h,v 1.30 2010/05/09 20:18:40 rmind Exp $ */
/*-
* Copyright (c) 2004, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -70,7 +70,11 @@
int cpu_xcall_pending; /* cross-call support */
lwp_t *cpu_onproc; /* bottom level LWP */
CIRCLEQ_ENTRY(cpu_info) cpu_qchain; /* circleq of all CPUs */
-
+
+ cpuid_t cpu_node_id;
+ cpuid_t cpu_core_id;
+ cpuid_t cpu_smt_id;
+
/*
* This section is mostly CPU-private.
*/
@@ -110,6 +114,10 @@
#define ci_spin_locks2 ci_data.cpu_spin_locks2
#define ci_lkdebug_recurse ci_data.cpu_lkdebug_recurse
+#define ci_node_id ci_data.cpu_node_id
+#define ci_core_id ci_data.cpu_core_id
+#define ci_smt_id ci_data.cpu_smt_id
+
int mi_cpu_attach(struct cpu_info *ci);
#endif /* _SYS_CPU_DATA_H_ */
Home |
Main Index |
Thread Index |
Old Index