Re: [PATCH 10/24] C6X: time management
From: Arnd Bergmann <arnd@arndb.de>
Date: 2011-08-09 16:35:10
From: Arnd Bergmann <arnd@arndb.de>
Date: 2011-08-09 16:35:10
On Monday 08 August 2011, Mark Salter wrote:
+#ifndef _ASM_C6X_TIMEX_H +#define _ASM_C6X_TIMEX_H + +/* + * This should be close enough... + */ +#define CLOCK_TICK_RATE ((1000 * 1000000UL) / 6) +
We're about to remove that symbol and all its users, you should not need it in 3.2 any more (though you still do in 3.1-rc1).
+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. Arnd