mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 02:21:16 +00:00
696e409dbd
edac_mce module is an interface module that gets mcelog data and forwards to any registered edac module that expects to receive data via mce. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
31 lines
698 B
C
31 lines
698 B
C
/* Provides edac interface to mcelog events
|
|
*
|
|
* This file may be distributed under the terms of the
|
|
* GNU General Public License version 2.
|
|
*
|
|
* Copyright (c) 2009 by:
|
|
* Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
*
|
|
* Red Hat Inc. http://www.redhat.com
|
|
*/
|
|
|
|
#if defined(CONFIG_EDAC_MCE) || \
|
|
(defined(CONFIG_EDAC_MCE_MODULE) && defined(MODULE))
|
|
|
|
#include <asm/mce.h>
|
|
#include <linux/list.h>
|
|
|
|
struct edac_mce {
|
|
struct list_head list;
|
|
|
|
void *priv;
|
|
int (*check_error)(void *priv, struct mce *mce);
|
|
};
|
|
|
|
int edac_mce_register(struct edac_mce *edac_mce);
|
|
void edac_mce_unregister(struct edac_mce *edac_mce);
|
|
int edac_mce_parse(struct mce *mce);
|
|
|
|
#else
|
|
#define edac_mce_parse(mce) (0)
|
|
#endif
|