This is related to #236 , but the root cause is a bit different.
Once CommonBase is able to avoid calling OnIdle all the time, we get left with a
thread still spinning at 100%:

It is just locked in rtcl_func, and looks like it is spinning on a single tiny loop:

My reading of x86 is not what it used to be, plus perf profiling is not that accurate, but that test then jal sequence
looks like an infinite loop to me. Possibly related to #237
Even if it is not an infinite loop, it is still wasting a huge amount of time and battery. I don't see why it can't sleep
for 1ms or something (ideally longer, as that still probably keeps CPUs in a high power state).
This is related to #236 , but the root cause is a bit different.
Once CommonBase is able to avoid calling OnIdle all the time, we get left with a
thread still spinning at 100%:
It is just locked in rtcl_func, and looks like it is spinning on a single tiny loop:
My reading of x86 is not what it used to be, plus perf profiling is not that accurate, but that
testthenjalsequencelooks like an infinite loop to me. Possibly related to #237
Even if it is not an infinite loop, it is still wasting a huge amount of time and battery. I don't see why it can't sleep
for 1ms or something (ideally longer, as that still probably keeps CPUs in a high power state).