Thanks for the quick reply. On Wed, Mar 28, 2018 at 6:19 AM, Richard Weinberger wrote: > Am Mittwoch, 28. März 2018, 15:11:29 CEST schrieb Geert Uytterhoeven: >> On Wed, Mar 28, 2018 at 12:28 PM, Joel Fernandes > wrote: >> > while(release_now == 0); >> >> while (release_now == 0) >> cpu_relax(); > > Not sure whether a cpu_relax() fixes the problem. > I guess the root of the problem is that UML is UP and non-preemptive. > Therefore the loop is never interrupted. > To verify I asked for the full source. > cpu_relax actually worked! Any thoughts on why it helps? Even if its non-preemptive, I did receive the timer interrupt, so I expected the variable to be set. Module is attached. Thanks, -Joel