[alsa-devel] [PATCH] ASoC: prevent compilers from optimising pll calculation into __aeabi__uldivmod

Mark Brown broonie at opensource.wolfsonmicro.com
Wed Apr 27 16:30:02 CEST 2011


On Wed, Apr 27, 2011 at 04:50:12PM +0800, Barry Song wrote:

> Marking pll_factors() as noinline or putting asm("" : "+r"(source)); before the
> call to do_div() works around the problem.

If we do have to do something in the callers rather than in do_div() the
annotation seems substantially more taseful than inserting a random asm
into the code.


More information about the Alsa-devel mailing list