edac_module.c (df9b42963f2d010ae3163a894ce22cf6b27cd344) | edac_module.c (37929874d439d79e8f6128f400f63069ee1bbf3e) |
---|---|
1/* 2 * edac_module.c 3 * 4 * (C) 2007 www.softwarebitmaker.com 5 * 6 * This file is licensed under the terms of the GNU General Public 7 * License version 2. This program is licensed "as is" without any 8 * warranty of any kind, whether express or implied. --- 4 unchanged lines hidden (view full) --- 13#include <linux/edac.h> 14 15#include "edac_core.h" 16#include "edac_module.h" 17 18#define EDAC_VERSION "Ver: 3.0.0" 19 20#ifdef CONFIG_EDAC_DEBUG | 1/* 2 * edac_module.c 3 * 4 * (C) 2007 www.softwarebitmaker.com 5 * 6 * This file is licensed under the terms of the GNU General Public 7 * License version 2. This program is licensed "as is" without any 8 * warranty of any kind, whether express or implied. --- 4 unchanged lines hidden (view full) --- 13#include <linux/edac.h> 14 15#include "edac_core.h" 16#include "edac_module.h" 17 18#define EDAC_VERSION "Ver: 3.0.0" 19 20#ifdef CONFIG_EDAC_DEBUG |
21 22static int edac_set_debug_level(const char *buf, struct kernel_param *kp) 23{ 24 unsigned long val; 25 int ret; 26 27 ret = kstrtoul(buf, 0, &val); 28 if (ret) 29 return ret; 30 31 if (val < 0 || val > 4) 32 return -EINVAL; 33 34 return param_set_int(buf, kp); 35} 36 |
|
21/* Values of 0 to 4 will generate output */ 22int edac_debug_level = 2; 23EXPORT_SYMBOL_GPL(edac_debug_level); | 37/* Values of 0 to 4 will generate output */ 38int edac_debug_level = 2; 39EXPORT_SYMBOL_GPL(edac_debug_level); |
40 41module_param_call(edac_debug_level, edac_set_debug_level, param_get_int, 42 &edac_debug_level, 0644); 43MODULE_PARM_DESC(edac_debug_level, "EDAC debug level: [0-4], default: 2"); |
|
24#endif 25 26/* scope is to module level only */ 27struct workqueue_struct *edac_workqueue; 28 29/* 30 * edac_op_state_to_string() 31 */ --- 95 unchanged lines hidden (view full) --- 127 * Inform the kernel of our entry and exit points 128 */ 129module_init(edac_init); 130module_exit(edac_exit); 131 132MODULE_LICENSE("GPL"); 133MODULE_AUTHOR("Doug Thompson www.softwarebitmaker.com, et al"); 134MODULE_DESCRIPTION("Core library routines for EDAC reporting"); | 44#endif 45 46/* scope is to module level only */ 47struct workqueue_struct *edac_workqueue; 48 49/* 50 * edac_op_state_to_string() 51 */ --- 95 unchanged lines hidden (view full) --- 147 * Inform the kernel of our entry and exit points 148 */ 149module_init(edac_init); 150module_exit(edac_exit); 151 152MODULE_LICENSE("GPL"); 153MODULE_AUTHOR("Doug Thompson www.softwarebitmaker.com, et al"); 154MODULE_DESCRIPTION("Core library routines for EDAC reporting"); |
135 136/* refer to *_sysfs.c files for parameters that are exported via sysfs */ 137 138#ifdef CONFIG_EDAC_DEBUG 139module_param(edac_debug_level, int, 0644); 140MODULE_PARM_DESC(edac_debug_level, "Debug level"); 141#endif | |