On 23/12/2015 12:28, Andrey Smetanin wrote: > - stimer_send_msg(stimer); > - if (!(stimer->config & HV_STIMER_PERIODIC)) > - stimer->config |= ~HV_STIMER_ENABLE; > - else > - stimer_start(stimer); > + stimer->msg_pending = true; > + if (!stimer_send_msg(stimer)) { > + stimer->msg_pending = false; > + if (!(stimer->config & HV_STIMER_PERIODIC)) > + stimer->config |= ~HV_STIMER_ENABLE;
Just because this is curious: sure it shouldn't be "&="? Paolo > + }