Module Name: src Committed By: rmind Date: Sun May 9 20:18:40 UTC 2010
Modified Files: src/sys/sys: cpu_data.h Log Message: Add node/core/smt ID numbers to struct cpu_data, will be filled by MD. OK m...@. To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/sys/sys/cpu_data.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/sys/cpu_data.h diff -u src/sys/sys/cpu_data.h:1.29 src/sys/sys/cpu_data.h:1.30 --- src/sys/sys/cpu_data.h:1.29 Sun Apr 25 15:55:24 2010 +++ src/sys/sys/cpu_data.h Sun May 9 20:18:40 2010 @@ -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_ */