Thread (51 messages) 51 messages, 4 authors, 2011-08-17

Re: [PATCH 10/24] C6X: time management

From: Arnd Bergmann <arnd@arndb.de>
Date: 2011-08-17 13:31:52

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help