]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - drivers/edac/edac_stub.c
cfb250fa38ce99a32f0fbe2b4aa0e3c9ebbe8576
[mirror_ubuntu-bionic-kernel.git] / drivers / edac / edac_stub.c
1 /*
2 * common EDAC components that must be in kernel
3 *
4 * Author: Dave Jiang <djiang@mvista.com>
5 *
6 * 2007 (c) MontaVista Software, Inc.
7 * 2010 (c) Advanced Micro Devices Inc.
8 * Borislav Petkov <bp@alien8.de>
9 *
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.
13 *
14 */
15 #include <linux/module.h>
16 #include <linux/edac.h>
17 #include <linux/atomic.h>
18 #include <linux/device.h>
19
20 int edac_op_state = EDAC_OPSTATE_INVAL;
21 EXPORT_SYMBOL_GPL(edac_op_state);
22
23 int edac_err_assert = 0;
24 EXPORT_SYMBOL_GPL(edac_err_assert);
25
26 int edac_report_status = EDAC_REPORTING_ENABLED;
27 EXPORT_SYMBOL_GPL(edac_report_status);
28
29 static int __init edac_report_setup(char *str)
30 {
31 if (!str)
32 return -EINVAL;
33
34 if (!strncmp(str, "on", 2))
35 set_edac_report_status(EDAC_REPORTING_ENABLED);
36 else if (!strncmp(str, "off", 3))
37 set_edac_report_status(EDAC_REPORTING_DISABLED);
38 else if (!strncmp(str, "force", 5))
39 set_edac_report_status(EDAC_REPORTING_FORCE);
40
41 return 0;
42 }
43 __setup("edac_report=", edac_report_setup);