On Wednesday 17 August 2011, Mark Salter wrote:
On Tue, 2011-08-09 at 18:35 +0200, Arnd Bergmann wrote:
quoted
quoted
+static cycle_t tsc_read(struct clocksource *cs)
+{
+ return get_cycles();
+}
What is this good for? TSC is an x86 specific feature, so you should
just
be able to use get_cycles directly.
TSC (Time Stamp Counter) is how the C6X hardware manuals refer to the
free running 64-bit core clock counter. The tsc_read function is needed
to provide a function with the correct prototype for struct clocksource
read method.
Ok, I see.
Arnd