http://acassis.wordpress.com/2008/07/01/erro-compilando-kernel-2622-no-opensuse11-gcc-431

Signed-off-by: Alexandros C. Couloumbis <alex at ozo.com>


--- linux-2.6.23.17/include/linux/time.h.orig   2009-01-22
23:18:04.000000000 +0200
+++ linux-2.6.23.17/include/linux/time.h        2009-01-22
23:25:17.000000000 +0200
@@ -177,6 +177,9 @@
 {
        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++;
        }

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to