aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/time.c
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-11-08 13:51:58 -0500
committerStephen Warren <swarren@nvidia.com>2012-12-24 11:36:35 -0500
commit23c197b77f9553c30f9c8a5ab41279a35f135f37 (patch)
tree7da1f4b032ff24482afb1f289ab9c633de684d7a /arch/arm/kernel/time.c
parentc8d5ba1891eda2aa63800f052cb5af128283d130 (diff)
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>
Diffstat (limited to 'arch/arm/kernel/time.c')
-rw-r--r--arch/arm/kernel/time.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/arm/kernel/time.c b/arch/arm/kernel/time.c
index b0190b41cb33..ea36bfaeba91 100644
--- a/arch/arm/kernel/time.c
+++ b/arch/arm/kernel/time.c
@@ -69,16 +69,6 @@ unsigned long profile_pc(struct pt_regs *regs)
69EXPORT_SYMBOL(profile_pc); 69EXPORT_SYMBOL(profile_pc);
70#endif 70#endif
71 71
72#ifdef CONFIG_ARCH_USES_GETTIMEOFFSET
73static u32 arm_gettimeoffset(void)
74{
75 if (system_timer->offset != NULL)
76 return system_timer->offset() * 1000;
77
78 return 0;
79}
80#endif /* CONFIG_ARCH_USES_GETTIMEOFFSET */
81
82#ifndef CONFIG_GENERIC_CLOCKEVENTS 72#ifndef CONFIG_GENERIC_CLOCKEVENTS
83/* 73/*
84 * Kernel system timer support. 74 * Kernel system timer support.
@@ -164,10 +154,6 @@ device_initcall(timer_init_syscore_ops);
164 154
165void __init time_init(void) 155void __init time_init(void)
166{ 156{
167#ifdef CONFIG_ARCH_USES_GETTIMEOFFSET
168 arch_gettimeoffset = arm_gettimeoffset;
169#endif
170
171 system_timer = machine_desc->timer; 157 system_timer = machine_desc->timer;
172 system_timer->init(); 158 system_timer->init();
173 sched_clock_postinit(); 159 sched_clock_postinit();