time: sh: convert to use arch_getoffset() infrastructure
Convert sh to use GENERIC_TIME via the arch_getoffset() infrastructure. Signed-off-by: John Stultz <johnstul@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
@@ -9,7 +9,7 @@ struct sys_timer_ops {
|
||||
int (*init)(void);
|
||||
int (*start)(void);
|
||||
int (*stop)(void);
|
||||
#ifndef CONFIG_GENERIC_TIME
|
||||
#ifdef CONFIG_ARCH_USES_GETTIMEOFFSET
|
||||
unsigned long (*get_offset)(void);
|
||||
#endif
|
||||
};
|
||||
@@ -26,7 +26,7 @@ struct sys_timer {
|
||||
extern struct sys_timer tmu_timer, mtu2_timer;
|
||||
extern struct sys_timer *sys_timer;
|
||||
|
||||
#ifndef CONFIG_GENERIC_TIME
|
||||
#ifdef CONFIG_ARCH_USES_GETTIMEOFFSET
|
||||
static inline unsigned long get_timer_offset(void)
|
||||
{
|
||||
return sys_timer->ops->get_offset();
|
||||
|
Reference in New Issue
Block a user