Re: [PATCH v10 6/7] x86/paravirt: add active_sched_clock to pv_time_ops

From: Thomas Gleixner
Date: Tue Jun 19 2018 - 19:13:36 EST


On Fri, 15 Jun 2018, Pavel Tatashin wrote:
> Early boot clock might differ from the clock that is used later on,
> therefore add a new field to pv_time_ops, that shows currently active
> clock. If platform supports early boot clock, this field will be changed
> to use that clock early in boot, and later will be replaced with the
> permanent clock.

I'm not seeing why this is required. If a hypervisor provides a
sched_clock() override then it's not the kernels problem to make sure that
it is usable.

Thanks,

tglx