diff options
author | Huang Ying <ying.huang@intel.com> | 2010-08-02 03:48:23 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2010-08-08 14:55:26 -0400 |
commit | ad4ecef2f13c790f95b55320f2925c205d8f971f (patch) | |
tree | 2718790c7681e10e9ee62e8bb8ec2e0ca0d3bb19 | |
parent | 2663b3f23537618c0c286551b138353fe26b3df8 (diff) |
ACPI, APEI, Rename CPER and GHES severity constants
The abbreviation of severity should be SEV instead of SER, so the CPER
severity constants are renamed accordingly. GHES severity constants
are renamed in the same way too.
Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce-apei.c | 4 | ||||
-rw-r--r-- | drivers/acpi/apei/ghes.c | 32 | ||||
-rw-r--r-- | include/linux/cper.h | 8 |
3 files changed, 22 insertions, 22 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce-apei.c b/arch/x86/kernel/cpu/mcheck/mce-apei.c index 745b54f9be89..8209472b27a5 100644 --- a/arch/x86/kernel/cpu/mcheck/mce-apei.c +++ b/arch/x86/kernel/cpu/mcheck/mce-apei.c | |||
@@ -80,7 +80,7 @@ int apei_write_mce(struct mce *m) | |||
80 | rcd.hdr.revision = CPER_RECORD_REV; | 80 | rcd.hdr.revision = CPER_RECORD_REV; |
81 | rcd.hdr.signature_end = CPER_SIG_END; | 81 | rcd.hdr.signature_end = CPER_SIG_END; |
82 | rcd.hdr.section_count = 1; | 82 | rcd.hdr.section_count = 1; |
83 | rcd.hdr.error_severity = CPER_SER_FATAL; | 83 | rcd.hdr.error_severity = CPER_SEV_FATAL; |
84 | /* timestamp, platform_id, partition_id are all invalid */ | 84 | /* timestamp, platform_id, partition_id are all invalid */ |
85 | rcd.hdr.validation_bits = 0; | 85 | rcd.hdr.validation_bits = 0; |
86 | rcd.hdr.record_length = sizeof(rcd); | 86 | rcd.hdr.record_length = sizeof(rcd); |
@@ -96,7 +96,7 @@ int apei_write_mce(struct mce *m) | |||
96 | rcd.sec_hdr.validation_bits = 0; | 96 | rcd.sec_hdr.validation_bits = 0; |
97 | rcd.sec_hdr.flags = CPER_SEC_PRIMARY; | 97 | rcd.sec_hdr.flags = CPER_SEC_PRIMARY; |
98 | rcd.sec_hdr.section_type = CPER_SECTION_TYPE_MCE; | 98 | rcd.sec_hdr.section_type = CPER_SECTION_TYPE_MCE; |
99 | rcd.sec_hdr.section_severity = CPER_SER_FATAL; | 99 | rcd.sec_hdr.section_severity = CPER_SEV_FATAL; |
100 | 100 | ||
101 | memcpy(&rcd.mce, m, sizeof(*m)); | 101 | memcpy(&rcd.mce, m, sizeof(*m)); |
102 | 102 | ||
diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index fd0cc016a099..c76aff6c861d 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c | |||
@@ -132,26 +132,26 @@ static void ghes_fini(struct ghes *ghes) | |||
132 | } | 132 | } |
133 | 133 | ||
134 | enum { | 134 | enum { |
135 | GHES_SER_NO = 0x0, | 135 | GHES_SEV_NO = 0x0, |
136 | GHES_SER_CORRECTED = 0x1, | 136 | GHES_SEV_CORRECTED = 0x1, |
137 | GHES_SER_RECOVERABLE = 0x2, | 137 | GHES_SEV_RECOVERABLE = 0x2, |
138 | GHES_SER_PANIC = 0x3, | 138 | GHES_SEV_PANIC = 0x3, |
139 | }; | 139 | }; |
140 | 140 | ||
141 | static inline int ghes_severity(int severity) | 141 | static inline int ghes_severity(int severity) |
142 | { | 142 | { |
143 | switch (severity) { | 143 | switch (severity) { |
144 | case CPER_SER_INFORMATIONAL: | 144 | case CPER_SEV_INFORMATIONAL: |
145 | return GHES_SER_NO; | 145 | return GHES_SEV_NO; |
146 | case CPER_SER_CORRECTED: | 146 | case CPER_SEV_CORRECTED: |
147 | return GHES_SER_CORRECTED; | 147 | return GHES_SEV_CORRECTED; |
148 | case CPER_SER_RECOVERABLE: | 148 | case CPER_SEV_RECOVERABLE: |
149 | return GHES_SER_RECOVERABLE; | 149 | return GHES_SEV_RECOVERABLE; |
150 | case CPER_SER_FATAL: | 150 | case CPER_SEV_FATAL: |
151 | return GHES_SER_PANIC; | 151 | return GHES_SEV_PANIC; |
152 | default: | 152 | default: |
153 | /* Unkown, go panic */ | 153 | /* Unkown, go panic */ |
154 | return GHES_SER_PANIC; | 154 | return GHES_SEV_PANIC; |
155 | } | 155 | } |
156 | } | 156 | } |
157 | 157 | ||
@@ -237,16 +237,16 @@ static void ghes_clear_estatus(struct ghes *ghes) | |||
237 | 237 | ||
238 | static void ghes_do_proc(struct ghes *ghes) | 238 | static void ghes_do_proc(struct ghes *ghes) |
239 | { | 239 | { |
240 | int ser, processed = 0; | 240 | int sev, processed = 0; |
241 | struct acpi_hest_generic_data *gdata; | 241 | struct acpi_hest_generic_data *gdata; |
242 | 242 | ||
243 | ser = ghes_severity(ghes->estatus->error_severity); | 243 | sev = ghes_severity(ghes->estatus->error_severity); |
244 | apei_estatus_for_each_section(ghes->estatus, gdata) { | 244 | apei_estatus_for_each_section(ghes->estatus, gdata) { |
245 | #ifdef CONFIG_X86_MCE | 245 | #ifdef CONFIG_X86_MCE |
246 | if (!uuid_le_cmp(*(uuid_le *)gdata->section_type, | 246 | if (!uuid_le_cmp(*(uuid_le *)gdata->section_type, |
247 | CPER_SEC_PLATFORM_MEM)) { | 247 | CPER_SEC_PLATFORM_MEM)) { |
248 | apei_mce_report_mem_error( | 248 | apei_mce_report_mem_error( |
249 | ser == GHES_SER_CORRECTED, | 249 | sev == GHES_SEV_CORRECTED, |
250 | (struct cper_sec_mem_err *)(gdata+1)); | 250 | (struct cper_sec_mem_err *)(gdata+1)); |
251 | processed = 1; | 251 | processed = 1; |
252 | } | 252 | } |
diff --git a/include/linux/cper.h b/include/linux/cper.h index 4b38f905b705..bf972f81e2a7 100644 --- a/include/linux/cper.h +++ b/include/linux/cper.h | |||
@@ -39,10 +39,10 @@ | |||
39 | * Severity difinition for error_severity in struct cper_record_header | 39 | * Severity difinition for error_severity in struct cper_record_header |
40 | * and section_severity in struct cper_section_descriptor | 40 | * and section_severity in struct cper_section_descriptor |
41 | */ | 41 | */ |
42 | #define CPER_SER_RECOVERABLE 0x0 | 42 | #define CPER_SEV_RECOVERABLE 0x0 |
43 | #define CPER_SER_FATAL 0x1 | 43 | #define CPER_SEV_FATAL 0x1 |
44 | #define CPER_SER_CORRECTED 0x2 | 44 | #define CPER_SEV_CORRECTED 0x2 |
45 | #define CPER_SER_INFORMATIONAL 0x3 | 45 | #define CPER_SEV_INFORMATIONAL 0x3 |
46 | 46 | ||
47 | /* | 47 | /* |
48 | * Validation bits difinition for validation_bits in struct | 48 | * Validation bits difinition for validation_bits in struct |