aboutsummaryrefslogtreecommitdiff
path: root/sys/ia64/include/pcpu.h
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2009-12-07 06:41:27 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2009-12-07 06:41:27 +0000
commit58a0206d6380fcd95798b5edbfaf7fbb34e3b8c2 (patch)
tree36aeb994a1586d01cb3848cf269e990f35a8e54f /sys/ia64/include/pcpu.h
parent6e8021eae110afdc4cb5decb5780413a2c4eea87 (diff)
Notes
Diffstat (limited to 'sys/ia64/include/pcpu.h')
-rw-r--r--sys/ia64/include/pcpu.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/sys/ia64/include/pcpu.h b/sys/ia64/include/pcpu.h
index c6c999b30154..bc9fe0813d7c 100644
--- a/sys/ia64/include/pcpu.h
+++ b/sys/ia64/include/pcpu.h
@@ -43,23 +43,26 @@ struct pcpu_stats {
u_long pcs_nrdvs; /* IPI_RENDEZVOUS counter. */
u_long pcs_nstops; /* IPI_STOP counter. */
u_long pcs_nstrays; /* Stray interrupt counter. */
+};
+struct pcpu_md {
+ struct pcb pcb; /* Used by IPI_STOP */
+ struct pmap *current_pmap; /* active pmap */
+ vm_offset_t vhpt; /* Address of VHPT */
+ uint64_t lid; /* local CPU ID */
+ uint64_t clock; /* Clock counter. */
+ uint64_t clockadj; /* Clock adjust. */
+ uint32_t awake:1; /* CPU is awake? */
+ struct pcpu_stats stats; /* Interrupt stats. */
#ifdef _KERNEL
- struct sysctl_ctx_list pcs_sysctl_ctx;
- struct sysctl_oid *pcs_sysctl_tree;
+ struct sysctl_ctx_list sysctl_ctx;
+ struct sysctl_oid *sysctl_tree;
#endif
};
#define PCPU_MD_FIELDS \
- struct pcb pc_pcb; /* Used by IPI_STOP */ \
- struct pmap *pc_current_pmap; /* active pmap */ \
- vm_offset_t pc_vhpt; /* Address of VHPT */ \
- uint64_t pc_lid; /* local CPU ID */ \
- uint64_t pc_clock; /* Clock counter. */ \
- uint64_t pc_clockadj; /* Clock adjust. */ \
- uint32_t pc_awake:1; /* CPU is awake? */ \
uint32_t pc_acpi_id; /* ACPI CPU id. */ \
- struct pcpu_stats pc_stats
+ struct pcpu_md pc_md /* MD fields. */
#ifdef _KERNEL