diff options
author | Robert Schuster <thebohemian@gmx.net> | 2008-10-07 21:37:58 +0000 |
---|---|---|
committer | Robert Schuster <thebohemian@gmx.net> | 2008-10-07 21:37:58 +0000 |
commit | d9aa48e8ac4c98bb5704445ccd6d3a8ed95984b5 (patch) | |
tree | fe65202b2dae9a869bac2cb5d88e5fa8cff1696f /packages/linux/linux-2.6.24/time.h.patch | |
parent | 376502fa8b079d620430a9671ad22169ba85d6db (diff) | |
parent | 6f2f6d9acfc6c53adbc97893505a4fbb142d6f45 (diff) |
merge of '9706988717e3c2c70303850cb12a58843a12fa20'
and 'd6e042ee5309203ac2054f2cbb7ead6cb61a4e38'
Diffstat (limited to 'packages/linux/linux-2.6.24/time.h.patch')
-rw-r--r-- | packages/linux/linux-2.6.24/time.h.patch | 25 |
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++; + } |