Re: [PATCH 1/3] Input: applespi: Don't wait for responses to commands indefinitely.

From
Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date
2021-02-17 20:24:42
Also in
lkml
Reply to
Ronald Tschalär, 2021-02-17
Hi Ronald,

On Wed, Feb 17, 2021 at 11:07:16AM -0800, Ronald Tschalär wrote:
quoted hunk ↗ jump to hunk
@@ -869,7 +878,7 @@ static int applespi_send_cmd_msg(struct applespi_data *applespi)
 		return sts;
 	}
 
-	applespi->cmd_msg_queued = true;
+	applespi->cmd_msg_queued = ktime_get();
Will it be OK if I change this to ktime_get_coarse()? I do not think we
need exact time here, and the coarse variant is cheaper I believe.

Thanks.

-- 
Dmitry
Thread (13 messages) 13 messages, 3 authors, last reply 2021-02-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help