x86: Add timer_init to x86_init_ops
The timer init code is convoluted with several quirks and the paravirt timer chooser. Figuring out which code path is actually taken is not for the faint hearted. Move the numaq TSC quirk to tsc_pre_init x86_init_ops function and replace the paravirt time chooser and the remaining x86 quirk with a simple x86_init_ops function. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
@@ -34,11 +34,6 @@ static inline int set_wallclock(unsigned long nowtime)
|
||||
return PVOP_CALL1(int, pv_time_ops.set_wallclock, nowtime);
|
||||
}
|
||||
|
||||
static inline void (*choose_time_init(void))(void)
|
||||
{
|
||||
return pv_time_ops.time_init;
|
||||
}
|
||||
|
||||
/* The paravirtualized CPUID instruction. */
|
||||
static inline void __cpuid(unsigned int *eax, unsigned int *ebx,
|
||||
unsigned int *ecx, unsigned int *edx)
|
||||
|
Reference in New Issue
Block a user