OSDN Git Service

ARM: set arch_gettimeoffset directly
authorStephen Warren <swarren@nvidia.com>
Thu, 8 Nov 2012 18:51:58 +0000 (11:51 -0700)
committerStephen Warren <swarren@nvidia.com>
Mon, 24 Dec 2012 16:36:35 +0000 (09:36 -0700)
commit23c197b77f9553c30f9c8a5ab41279a35f135f37
tree7da1f4b032ff24482afb1f289ab9c633de684d7a
parentc8d5ba1891eda2aa63800f052cb5af128283d130
ARM: set arch_gettimeoffset directly

remove ARM's struct sys_timer .offset function pointer, and instead
directly set the arch_gettimeoffset function pointer when the timer
driver is initialized. This requires multiplying all function results
by 1000, since the removed arm_gettimeoffset() did this. Also,
s/unsigned long/u32/ just to make the function prototypes exactly
match that of arch_gettimeoffset.

Cc: Russell King <linux@arm.linux.org.uk>
Cc: Andrew Victor <linux@maxim.org.za>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ryan Mallon <rmallon@gmail.com>
Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
arch/arm/include/asm/mach/time.h
arch/arm/kernel/time.c
arch/arm/mach-at91/at91x40_time.c
arch/arm/mach-ebsa110/core.c
arch/arm/mach-ep93xx/core.c
arch/arm/mach-h720x/common.c
arch/arm/mach-h720x/common.h
arch/arm/mach-h720x/cpu-h7201.c
arch/arm/mach-h720x/cpu-h7202.c
arch/arm/mach-rpc/time.c
arch/arm/plat-samsung/time.c