drivers: edac: Defer work for the polling EDAC driver

Use the defer work mechanism to poll for errors using a callback function.

Change-Id: Id599a9159098a8b13df386290b3e46939831a4ff
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
This commit is contained in:
Prakruthi Deepak Heragu 2020-01-30 12:03:20 -08:00
commit 06c03f1e68

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
*/
#include <linux/edac.h>
@ -383,6 +383,9 @@ static int qcom_llcc_edac_probe(struct platform_device *pdev)
dev_info(dev, "No ECC IRQ; defaulting to polling mode\n");
edev_ctl->poll_msec = poll_msec;
edev_ctl->edac_check = qcom_llcc_poll_cache_errors;
#ifdef CONFIG_EDAC_QGKI
edev_ctl->defer_work = 1;
#endif
}
rc = edac_device_add_device(edev_ctl);