From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH] ASoC: prevent compilers from optimising pll calculation into __aeabi__uldivmod Date: Wed, 27 Apr 2011 15:30:02 +0100 Message-ID: <20110427143002.GC31952@opensource.wolfsonmicro.com> References: <1303889252-6722-1-git-send-email-bs14@csr.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from opensource2.wolfsonmicro.com (opensource.wolfsonmicro.com [80.75.67.52]) by alsa0.perex.cz (Postfix) with ESMTP id 1B4901037F8 for ; Wed, 27 Apr 2011 16:30:04 +0200 (CEST) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Barry Song <21cnbao@gmail.com> Cc: alsa-devel@alsa-project.org, Barry Song , Takashi Iwai , Zhiwu Song , Binghua Duan , lrg@slimlogic.co.uk List-Id: alsa-devel@alsa-project.org 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.