Re: [PATCH v2] MIPS: Add a high resolution sched_clock() via cnt32_to_63().

From: Sergei Shtylyov
Date: Sun Nov 22 2009 - 06:55:30 EST


Hello.

Wu Zhangjin wrote:

+static void __maybe_unused setup_sched_clock_update(unsigned long tclk)
+{
+ unsigned long data;
+
+ data = (0xffffffffUL / tclk / 2 - 2) * HZ;

Because the MIPS c0 count's frequency is half of the cpu frequency(Hi, Ralf, does every MIPS c0 count meet this feature?),

No, e.g. Alchemy's C0 Count ticks at full CPU speed.

WBR, Sergei


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