summaryrefslogtreecommitdiff
path: root/packages/linux/linux-2.6.24/time.h.patch
diff options
context:
space:
mode:
authorRobert Schuster <thebohemian@gmx.net>2008-10-07 23:49:56 +0000
committerRobert Schuster <thebohemian@gmx.net>2008-10-07 23:49:56 +0000
commit570c4b81062fc43f021950e6449c1b0dd6d6c602 (patch)
treef0dfabf4a3d2246a3a0d3a35a963fd44c158cdac /packages/linux/linux-2.6.24/time.h.patch
parentde7bcfef852d62482f776453472de653cbec2f4b (diff)
parentea83ce724eaa0cbb5caf93ee90c60a7c1f89feef (diff)
merge of '7d22e72b69f8f66fb6c9a1517dd341b70559cfc7'
and 'c82c3d791987b7feb095d7b6b0c12a52eef72fb0'
Diffstat (limited to 'packages/linux/linux-2.6.24/time.h.patch')
-rw-r--r--packages/linux/linux-2.6.24/time.h.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/linux/linux-2.6.24/time.h.patch b/packages/linux/linux-2.6.24/time.h.patch
new file mode 100644
index 0000000000..fd22f3a01d
--- /dev/null
+++ b/packages/linux/linux-2.6.24/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++;
+ }