merge of '6347af950ec1a0ff98214a570984c55df668fad7'
[vuplus_openembedded] / packages / linux / linux-2.6.24 / time.h.patch
1 ....since some architectures don't support __udivdi3() (and
2  we don't want to use that, anyway).
3  
4  Signed-off-by: Segher Boessenkool 
5  ---
6  include/linux/time.h | 4 ++++
7  1 files changed, 4 insertions(+), 0 deletions(-)
8
9
10 Index: linux-2.6.24/include/linux/time.h
11 ===================================================================
12 --- linux-2.6.24.orig/include/linux/time.h      2008-06-23 11:17:09.021841180 +0200
13 +++ linux-2.6.24/include/linux/time.h   2008-06-23 11:18:34.445167140 +0200
14 @@ -173,6 +173,11 @@
15  {
16         ns += a->tv_nsec;
17         while(unlikely(ns >= NSEC_PER_SEC)) {
18 +               /* The following asm() prevents the compiler from
19 +                * optimising this loop into a modulo operation.
20 +                */
21 +               asm("" : "+r"(ns));
22 +
23                 ns -= NSEC_PER_SEC;
24                 a->tv_sec++;
25         }