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

Commit 2554fc1f authored by Imre Deak's avatar Imre Deak Committed by Daniel Vetter
Browse files

drm/i915: use msecs_to_jiffies_timeout instead of open coding the same

parent df97729f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -228,7 +228,7 @@ gmbus_wait_hw_status(struct drm_i915_private *dev_priv,
	 * need to wake up periodically and check that ourselves. */
	 * need to wake up periodically and check that ourselves. */
	I915_WRITE(GMBUS4 + reg_offset, gmbus4_irq_en);
	I915_WRITE(GMBUS4 + reg_offset, gmbus4_irq_en);


	for (i = 0; i < msecs_to_jiffies(50) + 1; i++) {
	for (i = 0; i < msecs_to_jiffies_timeout(50); i++) {
		prepare_to_wait(&dev_priv->gmbus_wait_queue, &wait,
		prepare_to_wait(&dev_priv->gmbus_wait_queue, &wait,
				TASK_UNINTERRUPTIBLE);
				TASK_UNINTERRUPTIBLE);