mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
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:
parent
b6541efc03
commit
06c03f1e68
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue