oboe icon indicating copy to clipboard operation
oboe copied to clipboard

Remove cpu_relax from stabilized callback

Open atneya opened this issue 6 years ago • 3 comments

cpu_relax may have unintended side effects leading to increased preemptions

atneya avatar Jul 25 '19 18:07 atneya

What are the unintended side effects? What do you suggest as an alternative?

philburk avatar Aug 02 '19 00:08 philburk

no-inline can be used to make a function that will always get called. Maybe do shifts and XOR on an input parameter that will get passed as zero. That might minimize gate flipping and reduce power.

philburk avatar Aug 06 '19 17:08 philburk

A guy from Ableton (Ryan Brown?) gave a talk about how CPU frequency scaling was affecting iOS devices at ADC'19. He referenced the wfe instruction as a way of generating artificial load. Code here.

dturner avatar Sep 15 '20 15:09 dturner

We are going to deprecate stabilized callback.

philburk avatar Jun 15 '23 21:06 philburk