rdmsr, wrmsr: add '-a' parameter to operate on all processors

Now that even a laptop has multiple processors...
it is handy to have the option to simultaneously
read or write an MSR on all the processors
in the system.

We get the list of on-line processors from /proc/stat

Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2 files changed
tree: 48a80280ae703af6c80919d8031866339a4c9245
  1. MAKEDEV-cpuid-msr
  2. Makefile
  3. rdmsr.c
  4. version.h
  5. wrmsr.c