Messages in this thread | | | Date | Tue, 03 Mar 2009 16:30:43 +0100 | From | Johannes Weiner <> | Subject | [patch 0/3] xtensa generic time |
| |
Hi,
here are three patches that convert the xtensa arch code to make use of the generic time implementation.
The first one just removes xtensa's sched_clock() in order to use the default implementation as it is the same thing.
The second one removes the platform-specific rtc get/set callbacks, the interface is not really feasible for the generic time implementation. Currently, no platform implements this callback. Platforms that want to should implement a rtc driver and read_persistent_clock().
The third one converts xtensa to use generic time code by implementing ccount as a clocksource. This lets us get rid of xtensa-specific gtod/stod as now the generic time code is used for that.
Hannes
arch/xtensa/Kconfig | 3 + arch/xtensa/include/asm/platform.h | 11 --- arch/xtensa/kernel/platform.c | 2 - arch/xtensa/kernel/time.c | 120 +++++------------------------------- 4 files changed, 19 insertions(+), 117 deletions(-)
| |