]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mce: Add macros for the corrected error count bit field
authorQiuxu Zhuo <qiuxu.zhuo@intel.com>
Tue, 25 Sep 2018 00:03:43 +0000 (17:03 -0700)
committerBorislav Petkov <bp@suse.de>
Thu, 27 Sep 2018 14:08:18 +0000 (16:08 +0200)
commitd5682b5d6cf149505ad3f88464a4859bf64e10f0
treec750e672e6d613fcf17c1ec81556eb43fe8622fd
parentd734fe6fe34a69e156fdb5e500394f78939fea6b
x86/mce: Add macros for the corrected error count bit field

The bit field [52:38] of MCi_STATUS contains the corrected error count.
Add {*_SHIFT|*_MASK|*_CEC(c)} macros for it.

 [ bp: use GENMASK_ULL. ]

Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Aristeu Rozanski <aris@redhat.com>
Cc: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Cc: linux-edac@vger.kernel.org
Cc: x86@kernel.org
Link: https://lkml.kernel.org/r/20180925000343.GB5998@agluck-desk
arch/x86/include/asm/mce.h