Re: Problem when function alarmtimer_suspend returns 0 if time delta is zero

2019-09-03 Thread Thomas Gleixner
On Tue, 3 Sep 2019, Michael wrote: > Thomas, > > thank you very much for your patch. Unfortunately currently I can only test it > with a kernel 4.1.52 but i've tried to patch > your new logic into my older kernel version. https://people.kernel.org/tglx/notes-about-netiquette

Re: Problem when function alarmtimer_suspend returns 0 if time delta is zero

2019-09-03 Thread Michael
Thomas, thank you very much for your patch. Unfortunately currently I can only test it with a kernel 4.1.52 but i've tried to patch your new logic into my older kernel version. There seem to be rare cases where the "delta" value becomes negative. Therefore I added if(unlikely(delta < 0)) {

Re: Problem when function alarmtimer_suspend returns 0 if time delta is zero

2019-09-02 Thread Thomas Gleixner
Michael, On Mon, 2 Sep 2019, Alexandre Belloni wrote: > On 31/08/2019 20:32:06+0200, Michael wrote: > > currently I have a problem with the alarmtimer i'm using to cyclically wake > > up my i.MX6 ULL board from suspend to RAM. > > > > The problem is that in principle the timer wake ups work fine

Re: Problem when function alarmtimer_suspend returns 0 if time delta is zero

2019-09-02 Thread Alexandre Belloni
Hello Michael, This code is maintained by the timekeeping maintainers, now in Cc and I think John will be able to answer. On 31/08/2019 20:32:06+0200, Michael wrote: > Dear members of the linux-rtc list, > > currently I have a problem with the alarmtimer i'm using to cyclically wake > up my