diff options
author | Andrew Bresticker <[email protected]> | 2014-10-30 13:01:07 -0700 |
---|---|---|
committer | Jassi Brar <[email protected]> | 2014-11-27 12:21:27 +0530 |
commit | 52a49306d7d19ef127e6d6f4fd92f84d4864296f (patch) | |
tree | 9e6608b633caf55d6552b124654af4a16cb79d6f /lib/memory-notifier-error-inject.c | |
parent | 0df1f2487d2f0d04703f142813d53615d62a1da4 (diff) |
mailbox: Don't unnecessarily re-arm the polling timer
poll_txdone() will unconditionally re-arm the polling timer if there was
an active request, even if the active request completed and no other
requests were submitted. This is fixed by:
- only re-arming the timer if the controller reported that the current
transmission has not completed, and,
- moving the call to poll_txdone() into msg_submit() so that the
controller gets polled (and the timer re-armed, if necessary) whenever
a new message is submitted.
Signed-off-by: Andrew Bresticker <[email protected]>
Reviewed-by: Thierry Reding <[email protected]>
Signed-off-by: Jassi Brar <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions