Re: [tip:x86/timers] sched/clock: Enable sched clock early
From: Pavel Tatashin
Date: Mon Jul 30 2018 - 09:45:23 EST
> > - if (cd.actual_read_sched_clock == jiffy_sched_clock_read)
> > + if (cd.actual_read_sched_clock == jiffy_sched_clock_read) {
> > + local_irq_disable();
> > sched_clock_register(jiffy_sched_clock_read, BITS_PER_LONG, HZ);
> > + local_irq_enable();
> > + }
> >
> > update_sched_clock();
>
> I'm thinking maybe disable IRQs for that entire function, instead of
> just the register call.
Sure, I will send a patch.
Thank you,
Pavel