summaryrefslogtreecommitdiff
path: root/target/linux/generic-2.6/patches-2.6.21/32-time_fix_timespec_add_ns.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/generic-2.6/patches-2.6.21/32-time_fix_timespec_add_ns.patch')
-rw-r--r--target/linux/generic-2.6/patches-2.6.21/32-time_fix_timespec_add_ns.patch17
1 files changed, 0 insertions, 17 deletions
diff --git a/target/linux/generic-2.6/patches-2.6.21/32-time_fix_timespec_add_ns.patch b/target/linux/generic-2.6/patches-2.6.21/32-time_fix_timespec_add_ns.patch
deleted file mode 100644
index 378ee28..0000000
--- a/target/linux/generic-2.6/patches-2.6.21/32-time_fix_timespec_add_ns.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-time: prevent the loop in timespec_add_ns() from being optimised away
-
-Since some architectures don't support __udivdi3().
-
---- a/include/linux/time.h
-+++ b/include/linux/time.h
-@@ -170,6 +170,10 @@ static inline void timespec_add_ns(struc
- {
- 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++;
- }