On Fri, 2026-05-15 at 12:19 -0700, Sean Christopherson wrote: > Move the handling of unstable PV clocks, of which kvmclock is the only > example, into paravirt_set_sched_clock(). This will allow modifying > paravirt_set_sched_clock() to keep using the TSC for sched_clock in > certain scenarios without unintentionally marking the TSC-based clock as > unstable. > > No functional change intended. > > Signed-off-by: Sean Christopherson <[email protected]>
Reviewed-by: David Woodhouse <[email protected]> > -void paravirt_set_sched_clock(u64 (*func)(void)); > +void __paravirt_set_sched_clock(u64 (*func)(void), bool stable); > + > +static inline void paravirt_set_sched_clock(u64 (*func)(void)) > +{ > + __paravirt_set_sched_clock(func, true); > +} One of the few things I actually like about C++ is default arguments...
smime.p7s
Description: S/MIME cryptographic signature

