summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2000-11-15 21:58:02 +0000
committerjhb <jhb@FreeBSD.org>2000-11-15 21:58:02 +0000
commitfee8891473fd70f0497a9a7365c92c997835f6a6 (patch)
tree95a58dd2628327a434b982981b45b2d1b81c073a /sys/powerpc
parent9ced7fb074609785a6a918a21021e867427eef23 (diff)
downloadFreeBSD-src-fee8891473fd70f0497a9a7365c92c997835f6a6.zip
FreeBSD-src-fee8891473fd70f0497a9a7365c92c997835f6a6.tar.gz
Add the 'witness_spin_check' per-CPU variable.
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/include/globaldata.h1
-rw-r--r--sys/powerpc/include/globals.h1
-rw-r--r--sys/powerpc/include/pcpu.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/sys/powerpc/include/globaldata.h b/sys/powerpc/include/globaldata.h
index b246bb1..361ae09 100644
--- a/sys/powerpc/include/globaldata.h
+++ b/sys/powerpc/include/globaldata.h
@@ -61,6 +61,7 @@ struct globaldata {
u_int gd_astpending;
SLIST_ENTRY(globaldata) gd_allcpu;
+ int gd_witness_spin_check;
#ifdef KTR_PERCPU
volatile int gd_ktr_idx; /* Index into trace table */
char *gd_ktr_buf;
diff --git a/sys/powerpc/include/globals.h b/sys/powerpc/include/globals.h
index b9e75fc..970ef68 100644
--- a/sys/powerpc/include/globals.h
+++ b/sys/powerpc/include/globals.h
@@ -58,6 +58,7 @@ register struct globaldata *globalp __asm__("$8");
#define switchtime PCPU_GET(switchtime)
#define switchticks PCPU_GET(switchticks)
#define cpuid PCPU_GET(cpuno)
+#define witness_spin_check PCPU_GET(witness_spin_check)
#endif /* _KERNEL */
diff --git a/sys/powerpc/include/pcpu.h b/sys/powerpc/include/pcpu.h
index b246bb1..361ae09 100644
--- a/sys/powerpc/include/pcpu.h
+++ b/sys/powerpc/include/pcpu.h
@@ -61,6 +61,7 @@ struct globaldata {
u_int gd_astpending;
SLIST_ENTRY(globaldata) gd_allcpu;
+ int gd_witness_spin_check;
#ifdef KTR_PERCPU
volatile int gd_ktr_idx; /* Index into trace table */
char *gd_ktr_buf;
OpenPOWER on IntegriCloud