Add node/core/smt ID numbers to struct cpu_data, will be filled by MD.
OK matt@.
This commit is contained in:
parent
3a05a00830
commit
c216f5fe0e
|
@ -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 @@ struct cpu_data {
|
|||
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 @@ struct cpu_data {
|
|||
#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_ */
|
||||
|
|
Loading…
Reference in New Issue