x86, MCE, AMD: Make error_count read only
authorBorislav Petkov <borislav.petkov@amd.com>
Fri, 27 Apr 2012 13:37:25 +0000 (15:37 +0200)
committerBorislav Petkov <borislav.petkov@amd.com>
Thu, 7 Jun 2012 10:43:47 +0000 (12:43 +0200)
commit6e927361bd403dbf5f6a2668a2a07df1f1b2daff
treed689a592de1dd09f9e5e9077274106c3b8d7e196
parent2c9c42fa98c283961b7f6b6542fb4bf0c0539e15
x86, MCE, AMD: Make error_count read only

Until now, writing to error count caused the code to reset the
thresholding bank to the current thresholding limit and start counting
errors from the beginning.

This is misleading and unclear, and can be accomplished by writing the
old thresholding limit into ->threshold_limit.

Make error_count read-only with the functionality to show the current
error count.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
arch/x86/kernel/cpu/mcheck/mce_amd.c