]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - drivers/edac/edac_stub.c
f02d21d8130f97f85c51a2937ea03414a4d7fba3
2 * common EDAC components that must be in kernel
4 * Author: Dave Jiang <djiang@mvista.com>
6 * 2007 (c) MontaVista Software, Inc.
7 * 2010 (c) Advanced Micro Devices Inc.
8 * Borislav Petkov <bp@alien8.de>
10 * This file is licensed under the terms of the GNU General Public
11 * License version 2. This program is licensed "as is" without any
12 * warranty of any kind, whether express or implied.
15 #include <linux/module.h>
16 #include <linux/edac.h>
17 #include <linux/atomic.h>
18 #include <linux/device.h>
20 int edac_op_state
= EDAC_OPSTATE_INVAL
;
21 EXPORT_SYMBOL_GPL(edac_op_state
);
23 int edac_report_status
= EDAC_REPORTING_ENABLED
;
24 EXPORT_SYMBOL_GPL(edac_report_status
);
26 static int __init
edac_report_setup(char *str
)
31 if (!strncmp(str
, "on", 2))
32 set_edac_report_status(EDAC_REPORTING_ENABLED
);
33 else if (!strncmp(str
, "off", 3))
34 set_edac_report_status(EDAC_REPORTING_DISABLED
);
35 else if (!strncmp(str
, "force", 5))
36 set_edac_report_status(EDAC_REPORTING_FORCE
);
40 __setup("edac_report=", edac_report_setup
);