diff options
author | Borislav Petkov <bp@suse.de> | 2017-01-26 18:25:11 +0100 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2017-04-10 17:14:21 +0200 |
commit | d3116a0837261405e0febb8043fe7040c8ebccb4 (patch) | |
tree | 1197f8438931981518f07b506cb7629c8f8705f7 /drivers/edac/edac_mc.c | |
parent | 97bb6c17ad5a0892beb45070dfe8c7d6d0e5326e (diff) | |
download | linux-d3116a0837261405e0febb8043fe7040c8ebccb4.tar.gz linux-d3116a0837261405e0febb8043fe7040c8ebccb4.tar.bz2 linux-d3116a0837261405e0febb8043fe7040c8ebccb4.zip |
EDAC: Remove edac_err_assert
... and the glue around it. It is not needed anymore.
Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac/edac_mc.c')
-rw-r--r-- | drivers/edac/edac_mc.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c index 824d31193b69..482b6aea1ce7 100644 --- a/drivers/edac/edac_mc.c +++ b/drivers/edac/edac_mc.c @@ -505,22 +505,6 @@ struct mem_ctl_info *find_mci_by_dev(struct device *dev) EXPORT_SYMBOL_GPL(find_mci_by_dev); /* - * handler for EDAC to check if NMI type handler has asserted interrupt - */ -static int edac_mc_assert_error_check_and_clear(void) -{ - int old_state; - - if (edac_op_state == EDAC_OPSTATE_POLL) - return 1; - - old_state = edac_err_assert; - edac_err_assert = 0; - - return old_state; -} - -/* * edac_mc_workq_function * performs the operation scheduled by a workq request */ @@ -536,7 +520,7 @@ static void edac_mc_workq_function(struct work_struct *work_req) return; } - if (edac_mc_assert_error_check_and_clear()) + if (edac_op_state == EDAC_OPSTATE_POLL) mci->edac_check(mci); mutex_unlock(&mem_ctls_mutex); |