The patch titled time: prevent the loop in timespec_add_ns() from being optimised away has been removed from the -mm tree. Its filename was time-prevent-the-loop-in-timespec_add_ns-from-being-optimised-away.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: time: prevent the loop in timespec_add_ns() from being optimised away From: Segher Boessenkool <segher@xxxxxxxxxxxxxxxxxxx> Since some architectures don't support __udivdi3(). Signed-off-by: Segher Boessenkool <segher@xxxxxxxxxxxxxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: john stultz <johnstul@xxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/time.h | 4 ++++ 1 file changed, 4 insertions(+) diff -puN include/linux/time.h~time-prevent-the-loop-in-timespec_add_ns-from-being-optimised-away include/linux/time.h --- a/include/linux/time.h~time-prevent-the-loop-in-timespec_add_ns-from-being-optimised-away +++ a/include/linux/time.h @@ -174,6 +174,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++; } _ Patches currently in -mm which might be from segher@xxxxxxxxxxxxxxxxxxx are powerpc-8xx-fix-swap.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html