From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [80.91.229.2] (helo=ciao.gmane.org) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1MM5vO-0004b2-NT for openembedded-devel@openembedded.org; Wed, 01 Jul 2009 21:56:58 +0200 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1MM5jq-0006Wl-At for openembedded-devel@openembedded.org; Wed, 01 Jul 2009 19:45:02 +0000 Received: from s55917625.adsl.wanadoo.nl ([85.145.118.37]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Jul 2009 19:45:02 +0000 Received: from k.kooi by s55917625.adsl.wanadoo.nl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Jul 2009 19:45:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: openembedded-devel@openembedded.org From: Koen Kooi Date: Wed, 01 Jul 2009 21:27:10 +0200 Message-ID: References: <200907011819.54127.marcin@juszkiewicz.com.pl> <1246474518-16737-2-git-send-email-marcin@juszkiewicz.com.pl> Mime-Version: 1.0 X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: s55917625.adsl.wanadoo.nl User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1pre) Gecko/20090622 Shredder/3.0b3pre In-Reply-To: <1246474518-16737-2-git-send-email-marcin@juszkiewicz.com.pl> Sender: news Subject: Re: [STABLE][PATCH 098/125] linux-rp-2.6.24: fix compilation with gcc-4.3 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jul 2009 19:56:58 -0000 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 01-07-09 20:55, Marcin Juszkiewicz wrote: > From: Andrea Adami > > Since some architectures don't support __udivdi3(). > > Signed-off-by: Segher Boessenkool > Cc: john stultz > Cc: Ingo Molnar > Signed-off-by: Andrew Morton > Signed-off-by: Thomas Gleixner > Signed-off-by: Marcin Juszkiewicz Acked-by: Koen Kooi > --- > ...vent-the-loop-in-timespec_add_ns-from-bei.patch | 15 +++++++++++++++ > recipes/linux/linux-rp_2.6.24.bb | 3 ++- > 2 files changed, 17 insertions(+), 1 deletions(-) > create mode 100644 recipes/linux/linux-rp-2.6.24/0001-time-prevent-the-loop-in-timespec_add_ns-from-bei.patch > > diff --git a/recipes/linux/linux-rp-2.6.24/0001-time-prevent-the-loop-in-timespec_add_ns-from-bei.patch b/recipes/linux/linux-rp-2.6.24/0001-time-prevent-the-loop-in-timespec_add_ns-from-bei.patch > new file mode 100644 > index 0000000..9d7020d > --- /dev/null > +++ b/recipes/linux/linux-rp-2.6.24/0001-time-prevent-the-loop-in-timespec_add_ns-from-bei.patch > @@ -0,0 +1,15 @@ > +Index: linux-2.6.24/include/linux/time.h > +=================================================================== > +--- a/include/linux/time.h > ++++ b/include/linux/time.h > +@@ -172,6 +172,10 @@ static inline void timespec_add_ns(struct timespec *a, u64 ns) > + { > + ns += a->tv_nsec; > + while(unlikely(ns>= NSEC_PER_SEC)) { > ++ /* The following asm() prevents the compiler from > ++ * optimising this loop into a modulo operation. */ > ++ asm("" : "+r"(ns)); > ++ > + ns -= NSEC_PER_SEC; > + a->tv_sec++; > + } > diff --git a/recipes/linux/linux-rp_2.6.24.bb b/recipes/linux/linux-rp_2.6.24.bb > index 7b06916..dd73738 100644 > --- a/recipes/linux/linux-rp_2.6.24.bb > +++ b/recipes/linux/linux-rp_2.6.24.bb > @@ -1,6 +1,6 @@ > require linux-rp.inc > > -PR = "r22" > +PR = "r23" > > DEFAULT_PREFERENCE = "-1" > DEFAULT_PREFERENCE_collie = "1" > @@ -23,6 +23,7 @@ DEFAULT_PREFERENCE_spitz = "1" > # Patches submitted upstream are towards top of this list > # Hacks should clearly named and at the bottom > SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.24.tar.bz2 \ > + file://0001-time-prevent-the-loop-in-timespec_add_ns-from-bei.patch;patch=1 \ > ${RPSRC}/export_atags-r2.patch;patch=1;status=pending \ > ${RPSRC}/lzo_crypto-r2.patch;patch=1;status=pending \ > ${RPSRC}/corgi_rearrange_lcd-r0.patch;patch=1;status=pending \