diff options
author | Bo Yan <byan@nvidia.com> | 2012-06-16 00:17:31 -0700 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-07-24 06:05:38 -0700 |
commit | db3d0b11602ef76576b5469e5d18dda77905eb9c (patch) | |
tree | 2beb582b0e4624ecbac03fd0b72961decdafb701 /arch/arm/mach-tegra/timer.h | |
parent | 07c9244642b4be07816e99f3c183ff58d5a6c98b (diff) |
ARM: tegra11: Save & restore timer registers
Save & restore generic timer registers across cluster switch.
Change-Id: I8a7e131dede5b21259868edf4fff2df8a20c93c2
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/116859
Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'arch/arm/mach-tegra/timer.h')
-rw-r--r-- | arch/arm/mach-tegra/timer.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/timer.h b/arch/arm/mach-tegra/timer.h index 8f762623e5de..385c3d7e9dfe 100644 --- a/arch/arm/mach-tegra/timer.h +++ b/arch/arm/mach-tegra/timer.h @@ -60,6 +60,16 @@ static inline void tegra_twd_suspend(struct tegra_twd_context *context) {} static inline void tegra_twd_resume(struct tegra_twd_context *context) {} #endif +#ifdef CONFIG_ARM_ARCH_TIMER +struct arch_timer_context { + u32 cntp_tval; + u32 cntp_ctl; +}; + +void arch_timer_suspend(struct arch_timer_context *); +void arch_timer_resume(struct arch_timer_context *); +#endif + #if defined(CONFIG_ARM_ARCH_TIMER) && defined(CONFIG_PM_SLEEP) void tegra_tsc_suspend(void); void tegra_tsc_resume(void); |