diff options
author | Rob Herring <rob.herring@calxeda.com> | 2012-06-11 22:32:12 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-06-12 11:15:49 -0400 |
commit | e7930ba49e469d9ce7374a788336caf955f8d7e2 (patch) | |
tree | e022c408057f46881d8da9cfd9b76d5b34e551d5 /drivers/edac/edac_module.h | |
parent | c10538396bf3f0076630103ede49c863c27db720 (diff) |
edac: create top-level debugfs directory
Create a single, top-level "edac" directory for debugfs. An "mc[0-N]"
directory is then created for each memory controller. Individual drivers
can create additional entries such as h/w error injection control.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac/edac_module.h')
-rw-r--r-- | drivers/edac/edac_module.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/edac/edac_module.h b/drivers/edac/edac_module.h index 62de640c8c8a..3d139c6e7fe3 100644 --- a/drivers/edac/edac_module.h +++ b/drivers/edac/edac_module.h | |||
@@ -57,6 +57,20 @@ extern void edac_mc_reset_delay_period(int value); | |||
57 | extern void *edac_align_ptr(void **p, unsigned size, int n_elems); | 57 | extern void *edac_align_ptr(void **p, unsigned size, int n_elems); |
58 | 58 | ||
59 | /* | 59 | /* |
60 | * EDAC debugfs functions | ||
61 | */ | ||
62 | #ifdef CONFIG_EDAC_DEBUG | ||
63 | int edac_debugfs_init(void); | ||
64 | void edac_debugfs_exit(void); | ||
65 | #else | ||
66 | static inline int edac_debugfs_init(void) | ||
67 | { | ||
68 | return -ENODEV; | ||
69 | } | ||
70 | static inline void edac_debugfs_exit(void) {} | ||
71 | #endif | ||
72 | |||
73 | /* | ||
60 | * EDAC PCI functions | 74 | * EDAC PCI functions |
61 | */ | 75 | */ |
62 | #ifdef CONFIG_PCI | 76 | #ifdef CONFIG_PCI |