Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1266955

[PATCH] Cleanup useless codes in CMCI handler

From "Chen, Gong" <gong.chen@linux.intel.com>
Newsgroups linux.kernel
Subject [PATCH] Cleanup useless codes in CMCI handler
Date 2015-11-11 04:30 +0100
Message-ID <qtugG-5K9-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


UCNA errors share the same handler with CMCI. But it doesn't
need extra operation to save error record in genpool. Remove
these uselss codes.

Signed-off-by: Chen, Gong <gong.chen@linux.intel.com>
---
 arch/x86/kernel/cpu/mcheck/mce.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
index c5b0d562dbf5..1ad3fb4f99b7 100644
--- a/arch/x86/kernel/cpu/mcheck/mce.c
+++ b/arch/x86/kernel/cpu/mcheck/mce.c
@@ -609,20 +609,6 @@ bool machine_check_poll(enum mcp_flags flags, mce_banks_t *b)
 		severity = mce_severity(&m, mca_cfg.tolerant, NULL, false);
 
 		/*
-		 * In the cases where we don't have a valid address after all,
-		 * do not add it into the ring buffer.
-		 */
-		if (severity == MCE_DEFERRED_SEVERITY && memory_error(&m)) {
-			if (m.status & MCI_STATUS_ADDRV) {
-				m.severity = severity;
-				m.usable_addr = mce_usable_address(&m);
-
-				if (!mce_gen_pool_add(&m))
-					mce_schedule_work();
-			}
-		}
-
-		/*
 		 * Don't get the IP here because it's unlikely to
 		 * have anything to do with the actual error location.
 		 */
-- 
2.3.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] Cleanup useless codes in CMCI handler "Chen, Gong" <gong.chen@linux.intel.com> - 2015-11-11 04:30 +0100
  Re: [PATCH] Cleanup useless codes in CMCI handler "Luck, Tony" <tony.luck@intel.com> - 2015-11-11 20:40 +0100
    [UNTESTED PATCH] x86, mce: Avoid double entry of deferred errors into the genpool. Tony Luck <tony.luck@intel.com> - 2015-11-11 23:30 +0100
      Re: [UNTESTED PATCH] x86, mce: Avoid double entry of deferred errors  into the genpool. "Chen, Gong" <gong.chen@linux.intel.com> - 2015-11-12 05:30 +0100

csiph-web