aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorCliff Wickman <cpw@sgi.com>2012-06-22 09:13:30 -0400
committerIngo Molnar <mingo@kernel.org>2012-06-25 08:45:04 -0400
commit26ef85770c765bb8b6b6922f8a413872dd8e3979 (patch)
tree3f09673f746331fd2e237661ccbf12b220d880f9 /arch/x86/include
parent11cab711f686893f2696a061dfca30454a624784 (diff)
x86/uv: Implement UV BAU runtime enable and disable control via /proc/sgi_uv/
This patch enables the BAU to be turned on or off dynamically. echo "on" > /proc/sgi_uv/ptc_statistics echo "off" > /proc/sgi_uv/ptc_statistics The system may be booted with or without the nobau option. Whether the system currently has the BAU off can be seen in the /proc file -- normally with the baustats script. Each cpu will have a 1 in the bauoff field if the BAU was turned off, so baustats will give a count of cpus that have it off. Signed-off-by: Cliff Wickman <cpw@sgi.com> Link: http://lkml.kernel.org/r/20120622131330.GB31884@sgi.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/uv/uv_bau.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/uv/uv_bau.h b/arch/x86/include/asm/uv/uv_bau.h
index 6149b476d9df..847c00b721b2 100644
--- a/arch/x86/include/asm/uv/uv_bau.h
+++ b/arch/x86/include/asm/uv/uv_bau.h
@@ -520,6 +520,7 @@ struct ptc_stats {
520 unsigned long s_uv2_wars; /* uv2 workaround, perm. busy */ 520 unsigned long s_uv2_wars; /* uv2 workaround, perm. busy */
521 unsigned long s_uv2_wars_hw; /* uv2 workaround, hiwater */ 521 unsigned long s_uv2_wars_hw; /* uv2 workaround, hiwater */
522 unsigned long s_uv2_war_waits; /* uv2 workaround, long waits */ 522 unsigned long s_uv2_war_waits; /* uv2 workaround, long waits */
523 unsigned long s_enters; /* entries to the driver */
523 /* destination statistics */ 524 /* destination statistics */
524 unsigned long d_alltlb; /* times all tlb's on this 525 unsigned long d_alltlb; /* times all tlb's on this
525 cpu were flushed */ 526 cpu were flushed */
@@ -586,6 +587,7 @@ struct bau_control {
586 int timeout_tries; 587 int timeout_tries;
587 int ipi_attempts; 588 int ipi_attempts;
588 int conseccompletes; 589 int conseccompletes;
590 short nobau;
589 int baudisabled; 591 int baudisabled;
590 int set_bau_off; 592 int set_bau_off;
591 short cpu; 593 short cpu;