[oe-commits] Andrea Adami : linux-rp-2.6.23: fix compilation with gcc-4.3

git version control git at git.openembedded.org
Sat May 30 23:24:46 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: a90701a8b544ce809c137ad44395c18a116466c4
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=a90701a8b544ce809c137ad44395c18a116466c4

Author: Andrea Adami <andrea.adami at gmail.com>
Date:   Sun May 31 00:50:23 2009 +0200

linux-rp-2.6.23: fix compilation with gcc-4.3

Since some architectures don't support __udivdi3().

Signed-off-by: Segher Boessenkool <segher at kernel.crashing.org>
Cc: john stultz <johnstul at us.ibm.com>
Cc: Ingo Molnar <mingo at elte.hu>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx at linutronix.de>

---

 ...vent-the-loop-in-timespec_add_ns-from-bei.patch |   15 +++++++++++++++
 recipes/linux/linux-rp_2.6.23.bb                   |    3 ++-
 2 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/recipes/linux/linux-rp-2.6.23/0001-time-prevent-the-loop-in-timespec_add_ns-from-bei.patch b/recipes/linux/linux-rp-2.6.23/0001-time-prevent-the-loop-in-timespec_add_ns-from-bei.patch
new file mode 100644
index 0000000..7e847d6
--- /dev/null
+++ b/recipes/linux/linux-rp-2.6.23/0001-time-prevent-the-loop-in-timespec_add_ns-from-bei.patch
@@ -0,0 +1,15 @@
+Index: linux-2.6.23/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.23.bb b/recipes/linux/linux-rp_2.6.23.bb
index 2293eea..460ac53 100644
--- a/recipes/linux/linux-rp_2.6.23.bb
+++ b/recipes/linux/linux-rp_2.6.23.bb
@@ -1,6 +1,6 @@
 require linux-rp.inc
 
-PR = "r35"
+PR = "r36"
 
 # Handy URLs
 # git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git;protocol=git;tag=ef7d1b244fa6c94fb76d5f787b8629df64ea4046
@@ -14,6 +14,7 @@ PR = "r35"
 # 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.23.tar.bz2 \
+	   file://0001-time-prevent-the-loop-in-timespec_add_ns-from-bei.patch;patch=1 \
            ${RPSRC}/pxa25x_suspend_fixes-r0.patch;patch=1;status=merged \
            ${RPSRC}/lzo_jffs2-r3.patch;patch=1;status=merged \
            ${RPSRC}/lzo_jffs2_lzomode-r1.patch;patch=1;status=merged \





More information about the Openembedded-commits mailing list