Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac6324ee authored by Rohit Vaswani's avatar Rohit Vaswani Committed by Gerrit - the friendly Code Review server
Browse files

edac: device: Use poll_msec from registered edac device instead of default



Use the poll_msec set by the driver that registreed an edac device
to define the poll time for how often the edac_check callback function
should be scheduled.

Change-Id: I973d7fb966cb9f6f9497510df5de000d4f8ffcba
Signed-off-by: default avatarRohit Vaswani <rvaswani@codeaurora.org>
parent dc9078ea
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -411,6 +411,8 @@ void edac_device_workq_setup(struct edac_device_ctl_info *edac_dev,
	 * to used in the time period calculation
	 * then calc the number of jiffies that represents
	 */
	if (!msec)
		msec = 1000;
	edac_dev->poll_msec = msec;
	edac_dev->delay = msecs_to_jiffies(msec);

@@ -530,7 +532,7 @@ int edac_device_add_device(struct edac_device_ctl_info *edac_dev)
		 * enable workq processing on this instance,
		 * default = 1000 msec
		 */
		edac_device_workq_setup(edac_dev, 1000);
		edac_device_workq_setup(edac_dev, edac_dev->poll_msec);
	} else {
		edac_dev->op_state = OP_RUNNING_INTERRUPT;
	}