diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-01 23:48:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-01 23:48:33 -0400 |
commit | 3dee9fb2a4ced89a13a4d4b72b0b7360b701e566 (patch) | |
tree | d3d10326cd904adc5664e4a50cacc5bdc312f5f9 /include/linux/ras.h | |
parent | 7c8c03bfc7b9f5211d8a69eab7fee99c9fb4f449 (diff) | |
parent | c6a9583fb41c8bd017f643d5bc90a0fe0a92fe43 (diff) |
Merge branch 'ras-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull RAS updates from Ingo Molnar:
"The main changes in this cycle were:
- add the 'Corrected Errors Collector' kernel feature which collect
and monitor correctable errors statistics and will preemptively
(soft-)offline physical pages that have a suspiciously high error
count.
- handle MCE errors during kexec() more gracefully
- factor out and deprecate the /dev/mcelog driver
- ... plus misc fixes and cleanpus"
* 'ras-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/mce: Check MCi_STATUS[MISCV] for usable addr on Intel only
ACPI/APEI: Use setup_deferrable_timer()
x86/mce: Update notifier priority check
x86/mce: Enable PPIN for Knights Landing/Mill
x86/mce: Do not register notifiers with invalid prio
x86/mce: Factor out and deprecate the /dev/mcelog driver
RAS: Add a Corrected Errors Collector
x86/mce: Rename mce_log to mce_log_buffer
x86/mce: Rename mce_log()'s argument
x86/mce: Init some CPU features early
x86/mce: Handle broadcasted MCE gracefully with kexec
Diffstat (limited to 'include/linux/ras.h')
-rw-r--r-- | include/linux/ras.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/linux/ras.h b/include/linux/ras.h index 2aceeafd6fe5..ffb147185e8d 100644 --- a/include/linux/ras.h +++ b/include/linux/ras.h | |||
@@ -1,14 +1,25 @@ | |||
1 | #ifndef __RAS_H__ | 1 | #ifndef __RAS_H__ |
2 | #define __RAS_H__ | 2 | #define __RAS_H__ |
3 | 3 | ||
4 | #include <asm/errno.h> | ||
5 | |||
4 | #ifdef CONFIG_DEBUG_FS | 6 | #ifdef CONFIG_DEBUG_FS |
5 | int ras_userspace_consumers(void); | 7 | int ras_userspace_consumers(void); |
6 | void ras_debugfs_init(void); | 8 | void ras_debugfs_init(void); |
7 | int ras_add_daemon_trace(void); | 9 | int ras_add_daemon_trace(void); |
8 | #else | 10 | #else |
9 | static inline int ras_userspace_consumers(void) { return 0; } | 11 | static inline int ras_userspace_consumers(void) { return 0; } |
10 | static inline void ras_debugfs_init(void) { return; } | 12 | static inline void ras_debugfs_init(void) { } |
11 | static inline int ras_add_daemon_trace(void) { return 0; } | 13 | static inline int ras_add_daemon_trace(void) { return 0; } |
12 | #endif | 14 | #endif |
13 | 15 | ||
16 | #ifdef CONFIG_RAS_CEC | ||
17 | void __init cec_init(void); | ||
18 | int __init parse_cec_param(char *str); | ||
19 | int cec_add_elem(u64 pfn); | ||
20 | #else | ||
21 | static inline void __init cec_init(void) { } | ||
22 | static inline int cec_add_elem(u64 pfn) { return -ENODEV; } | ||
14 | #endif | 23 | #endif |
24 | |||
25 | #endif /* __RAS_H__ */ | ||