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

Commit d89459df authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "edac: Allow the option of creating a deferrable work for polling"

parents b4846b08 1b9a7044
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -389,6 +389,10 @@ static void edac_device_workq_setup(struct edac_device_ctl_info *edac_dev,
	edac_dev->poll_msec = msec;
	edac_dev->delay = msecs_to_jiffies(msec);

	if (edac_dev->defer_work)
		INIT_DEFERRABLE_WORK(&edac_dev->work,
					edac_device_workq_function);
	else
		INIT_DELAYED_WORK(&edac_dev->work, edac_device_workq_function);

	/* optimize here for the 1 second case, which will be normal value, to
+1 −0
Original line number Diff line number Diff line
@@ -163,6 +163,7 @@ struct edac_device_ctl_info {
	int panic_on_ue;	/* boolean for panic'ing on an UE */
	unsigned poll_msec;	/* number of milliseconds to poll interval */
	unsigned long delay;	/* number of jiffies for poll_msec */
	bool defer_work;	/* Create a deferrable work for polling */

	/* Additional top controller level attributes, but specified
	 * by the low level driver.