Re: Ktimer / -rt9 (+custom) monotonic_clock going backwards.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 19 Oct 2005, Ingo Molnar wrote:

>
> should be monotone - the latest -rt kernels include a debugging check
> for the monotonicity of do_get_ktime_mono().
>

Hi Ingo,

Hmm, I think this will help in that debugging check :-)

-- Steve

Index: linux-2.6.14-rc4-rt12/kernel/ktimers.c
===================================================================
--- linux-2.6.14-rc4-rt12.orig/kernel/ktimers.c	2005-10-20 02:15:17.000000000 -0400
+++ linux-2.6.14-rc4-rt12/kernel/ktimers.c	2005-10-20 02:33:38.000000000 -0400
@@ -971,7 +971,7 @@
 		}
 		return prev;
 	}
-
+	per_cpu(prev_mono_time, cpu) = now;
 	return now;
 }

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux