Commit 34c6aea8 authored by Don Mahurin's avatar Don Mahurin Committed by Philippe Gerum
Browse files

arm64/ipipe: stub functions for __ipipe_tsc_register, __ipipe_tsc_update,...

arm64/ipipe: stub functions for __ipipe_tsc_register, __ipipe_tsc_update, __ipipe_mach_update_tsc, __ipipe_mach_get_tscinfo
parent 1494abcf
......@@ -94,8 +94,11 @@ void __ipipe_tsc_update(void);
extern unsigned long __ipipe_kuser_tsc_freq;
#define __ipipe_hrclock_freq __ipipe_kuser_tsc_freq
#else /* ! generic tsc */
static inline void __ipipe_mach_update_tsc(void) {}
unsigned long long __ipipe_mach_get_tsc(void);
#define __ipipe_tsc_get() __ipipe_mach_get_tsc()
void __ipipe_tsc_register(struct __ipipe_tscinfo *info);
static inline void __ipipe_tsc_update(void) {}
#ifndef __ipipe_hrclock_freq
extern unsigned long __ipipe_hrtimer_freq;
#define __ipipe_hrclock_freq __ipipe_hrtimer_freq
......
......@@ -580,6 +580,19 @@ void deferred_switch_mm(struct mm_struct *next)
#endif
#endif /* CONFIG_MMU */
#ifndef CONFIG_IPIPE_ARM_KUSER_TSC
static struct __ipipe_tscinfo tsc_info;
void __init __ipipe_tsc_register(struct __ipipe_tscinfo *info)
{
tsc_info = *info;
}
void __ipipe_mach_get_tscinfo(struct __ipipe_tscinfo *info)
{
*info = tsc_info;
}
#endif
#if defined(CONFIG_IPIPE_DEBUG) && defined(CONFIG_DEBUG_LL)
void printascii(const char *s);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment