Re: [patch 02/17] get_cycles() : x86 HAVE_GET_CYCLES

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Geert Uytterhoeven <geert@...>
Cc: Linus Torvalds <torvalds@...>, <akpm@...>, Ingo Molnar <mingo@...>, Peter Zijlstra <a.p.zijlstra@...>, Steven Rostedt <rostedt@...>, <linux-kernel@...>, David Miller <davem@...>, Ingo Molnar <mingo@...>, Thomas Gleixner <tglx@...>, <linux-arch@...>
Date: Thursday, November 13, 2008 - 9:34 am

* Geert Uytterhoeven (geert@linux-m68k.org) wrote:

HZ, for consistency.

So it becomes :

+static inline cycles_t get_cycles_rate(void)
+{
+ if (check_tsc_unstable())
+ return 0;
+ return (cycles_t)tsc_khz * 1000;
+}
+

Thanks for spotting this, will be integrated in the next release.

As a side-note, I noticed that I used CLOCK_TICK_RATE on MIPS when I
should use mips_hpt_frequency. This too will be fixed in the next
release.

Mathieu

> Gr{oetje,eeting}s,

--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
--

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 02/17] get_cycles() : x86 HAVE_GET_CYCLES, Mathieu Desnoyers, (Wed Nov 12, 7:15 pm)
Re: [patch 02/17] get_cycles() : x86 HAVE_GET_CYCLES, Geert Uytterhoeven, (Thu Nov 13, 3:15 am)
Re: [patch 02/17] get_cycles() : x86 HAVE_GET_CYCLES, Mathieu Desnoyers, (Thu Nov 13, 9:34 am)