aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/include/asm/mach/time.h11
-rw-r--r--arch/arm/kernel/time.c34
2 files changed, 0 insertions, 45 deletions
diff --git a/arch/arm/include/asm/mach/time.h b/arch/arm/include/asm/mach/time.h
index cac8d9c7d5d9..d316d76ef242 100644
--- a/arch/arm/include/asm/mach/time.h
+++ b/arch/arm/include/asm/mach/time.h
@@ -17,15 +17,6 @@
17 * Initialise the kernels jiffy timer source, claim interrupt 17 * Initialise the kernels jiffy timer source, claim interrupt
18 * using setup_irq. This is called early on during initialisation 18 * using setup_irq. This is called early on during initialisation
19 * while interrupts are still disabled on the local CPU. 19 * while interrupts are still disabled on the local CPU.
20 * - suspend
21 * Suspend the kernel jiffy timer source, if necessary. This
22 * is called with interrupts disabled, after all normal devices
23 * have been suspended. If no action is required, set this to
24 * NULL.
25 * - resume
26 * Resume the kernel jiffy timer source, if necessary. This
27 * is called with interrupts disabled before any normal devices
28 * are resumed. If no action is required, set this to NULL.
29 * - offset 20 * - offset
30 * Return the timer offset in microseconds since the last timer 21 * Return the timer offset in microseconds since the last timer
31 * interrupt. Note: this must take account of any unprocessed 22 * interrupt. Note: this must take account of any unprocessed
@@ -33,8 +24,6 @@
33 */ 24 */
34struct sys_timer { 25struct sys_timer {
35 void (*init)(void); 26 void (*init)(void);
36 void (*suspend)(void);
37 void (*resume)(void);
38}; 27};
39 28
40extern void timer_tick(void); 29extern void timer_tick(void);
diff --git a/arch/arm/kernel/time.c b/arch/arm/kernel/time.c
index ea36bfaeba91..0b51a7c88157 100644
--- a/arch/arm/kernel/time.c
+++ b/arch/arm/kernel/time.c
@@ -21,7 +21,6 @@
21#include <linux/timex.h> 21#include <linux/timex.h>
22#include <linux/errno.h> 22#include <linux/errno.h>
23#include <linux/profile.h> 23#include <linux/profile.h>
24#include <linux/syscore_ops.h>
25#include <linux/timer.h> 24#include <linux/timer.h>
26#include <linux/irq.h> 25#include <linux/irq.h>
27 26
@@ -119,39 +118,6 @@ int __init register_persistent_clock(clock_access_fn read_boot,
119 return -EINVAL; 118 return -EINVAL;
120} 119}
121 120
122#if defined(CONFIG_PM) && !defined(CONFIG_GENERIC_CLOCKEVENTS)
123static int timer_suspend(void)
124{
125 if (system_timer->suspend)
126 system_timer->suspend();
127
128 return 0;
129}
130
131static void timer_resume(void)
132{
133 if (system_timer->resume)
134 system_timer->resume();
135}
136#else
137#define timer_suspend NULL
138#define timer_resume NULL
139#endif
140
141static struct syscore_ops timer_syscore_ops = {
142 .suspend = timer_suspend,
143 .resume = timer_resume,
144};
145
146static int __init timer_init_syscore_ops(void)
147{
148 register_syscore_ops(&timer_syscore_ops);
149
150 return 0;
151}
152
153device_initcall(timer_init_syscore_ops);
154
155void __init time_init(void) 121void __init time_init(void)
156{ 122{
157 system_timer = machine_desc->timer; 123 system_timer = machine_desc->timer;