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

Skip to content
Commit adc7dca4 authored by Bojun Pan's avatar Bojun Pan Committed by Gerrit - the friendly Code Review server
Browse files

msm: gsi: Avoid unnessary write to ipa



Only write to ipa to reset channel interrupt, when there
is no entry. Do a read of read pointer after write to close
a small window. The sequence is as such in the poll channel:
 If sw needs to update sw read pointer, it does,
  step 1. update read pointer from ipa,
  step 2  if there is no event, write to reset channel
    interrupt.
  step 3, to close window between step 1 and step2 that
    may have new events, do another read of read pointer.
    And if no more entry then, return EMPTY.
    Otherwise proceeed to process entries as before.

Change-Id: I68b983111416b617b835de024a22c47517ea7f3e
Signed-off-by: default avatarBojun Pan <bojunp@codeaurora.org>
parent 99080dfb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment