> > - 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

