aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/linux/linux-2.6.23
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>2009-10-21 12:29:35 +0200
committerMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>2009-12-14 11:34:59 +0100
commit984dfde8a7189f3e5fa00799b7392b8328edfa58 (patch)
treea27988ec656e5dc0a4c026390e53cf8c5ffb63d5 /recipes/linux/linux-2.6.23
parent9d1b79b7848e13e1bf80b736671f76144cc508d4 (diff)
downloadopenembedded-984dfde8a7189f3e5fa00799b7392b8328edfa58.tar.gz
linux 2.6.23: added time.h.patch to make it build for ARM
Diffstat (limited to 'recipes/linux/linux-2.6.23')
-rw-r--r--recipes/linux/linux-2.6.23/time.h.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/recipes/linux/linux-2.6.23/time.h.patch b/recipes/linux/linux-2.6.23/time.h.patch
new file mode 100644
index 0000000000..fd22f3a01d
--- /dev/null
+++ b/recipes/linux/linux-2.6.23/time.h.patch
@@ -0,0 +1,25 @@
+....since some architectures don't support __udivdi3() (and
+ we don't want to use that, anyway).
+
+ Signed-off-by: Segher Boessenkool
+ ---
+ include/linux/time.h | 4 ++++
+ 1 files changed, 4 insertions(+), 0 deletions(-)
+
+
+Index: linux-2.6.24/include/linux/time.h
+===================================================================
+--- linux-2.6.24.orig/include/linux/time.h 2008-06-23 11:17:09.021841180 +0200
++++ linux-2.6.24/include/linux/time.h 2008-06-23 11:18:34.445167140 +0200
+@@ -173,6 +173,11 @@
+ {
+ 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++;
+ }