x86/uv: Implement UV BAU runtime enable and disable control via /proc/sgi_uv/
authorCliff Wickman <cpw@sgi.com>
Fri, 22 Jun 2012 13:13:30 +0000 (08:13 -0500)
committerIngo Molnar <mingo@kernel.org>
Mon, 25 Jun 2012 12:45:04 +0000 (14:45 +0200)
commit26ef85770c765bb8b6b6922f8a413872dd8e3979
tree3f09673f746331fd2e237661ccbf12b220d880f9
parent11cab711f686893f2696a061dfca30454a624784
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>
arch/x86/include/asm/uv/uv_bau.h
arch/x86/platform/uv/tlb_uv.c