]> git.baikalelectronics.ru Git - kernel.git/commit
HWPOISON: Clean up PR_MCE_KILL interface
authorAndi Kleen <ak@linux.intel.com>
Sun, 4 Oct 2009 00:20:11 +0000 (02:20 +0200)
committerAndi Kleen <ak@linux.intel.com>
Sun, 4 Oct 2009 01:23:17 +0000 (03:23 +0200)
commit092b904c38a75a9997306c82d8200727e799f48e
treea370356b3f969b6081189d850d9a56921ed341c4
parent69c061043673ee0e15ecb8768a360ccaec8471f4
HWPOISON: Clean up PR_MCE_KILL interface

While writing the manpage I noticed some shortcomings in the
current interface.

- Define symbolic names for all the different values
- Boundary check the kill mode values
- For symmetry add a get interface too. This allows library
code to get/set the current state.
- For consistency define a PR_MCE_KILL_DEFAULT value

Signed-off-by: Andi Kleen <ak@linux.intel.com>
include/linux/prctl.h
kernel/sys.c