]> err.no Git - linux-2.6/blobdiff - include/net/pkt_sched.h
[PATCH] ARM: 2664/2: add support for atomic ops on pre-ARMv6 SMP systems
[linux-2.6] / include / net / pkt_sched.h
index 7352e455053cc857e70f0cb1e008eb7adabbe011..fcb05a387dbee560d6a0f20b6e8c3c4f1b2d93f1 100644 (file)
@@ -157,7 +157,8 @@ psched_tod_diff(int delta_sec, int bound)
           case 1: \
                   __delta += 1000000; \
           case 0: \
-                  __delta = abs(__delta); \
+                  if (__delta > bound || __delta < 0) \
+                       __delta = bound; \
           } \
           __delta; \
 })