>  static int clockevents_program_min_delta(struct clock_event_device *dev)
>  {
> -     unsigned long long clc;
> -     int64_t delta;
> -
> -     delta = dev->min_delta_ns;
> -
>       if (clockevent_state_shutdown(dev))
>               return 0;
>  
>       dev->retries++;
> -     clc = ((unsigned long long) delta * dev->mult) >> dev->shift;
> -     return dev->set_next_event((unsigned long) clc, dev);
> +     return dev->set_next_event(dev->min_delta_ticks_incr, dev);
>  }
>  
>  #endif /* CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST */

FYI, the kernel build test robot reported a build failure with
CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=n. It shoud read as
dev->min_delta_ticks_adjusted here. In order to avoid unnecessary
traffic, I'll only fix this up in a v5 if you give the whole thing a go.


Reply via email to