Re: [PATCH 10/24] C6X: time management
From: Mark Salter <hidden>
Date: 2011-08-17 13:15:13
From: Mark Salter <hidden>
Date: 2011-08-17 13:15:13
On Tue, 2011-08-09 at 18:35 +0200, Arnd Bergmann wrote:
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. --Mark