mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
d36cb2935a
This function is not defined if native ARM timers are used, leading to compilation errors in shared restart core. Change-Id: Idbb393f9e5f884d31088be211a5456c1d76b5d02 Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
32 lines
1.2 KiB
C
32 lines
1.2 KiB
C
/* Copyright (c) 2008-2009, 2011-2012 Code Aurora Forum. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
#ifndef _ARCH_ARM_MACH_MSM_TIMER_H_
|
|
#define _ARCH_ARM_MACH_MSM_TIMER_H_
|
|
|
|
extern struct sys_timer msm_timer;
|
|
|
|
uint32_t msm_timer_get_sclk_ticks(void);
|
|
int msm_timer_init_time_sync(void (*timeout)(void));
|
|
#ifndef CONFIG_ARM_ARCH_TIMER
|
|
void __iomem *msm_timer_get_timer0_base(void);
|
|
int64_t msm_timer_enter_idle(void);
|
|
void msm_timer_exit_idle(int low_power);
|
|
int64_t msm_timer_get_sclk_time(int64_t *period);
|
|
#else
|
|
static inline int64_t msm_timer_enter_idle(void) { return 0; }
|
|
static inline void msm_timer_exit_idle(int low_power) { return; }
|
|
static inline int64_t msm_timer_get_sclk_time(int64_t *period) { return 0; }
|
|
static inline void __iomem *msm_timer_get_timer0_base(void) { return NULL; }
|
|
#endif
|
|
#endif
|