Re: [PATCH V4 2/2] rcu: Update jiffies in rcu_cpu_stall_reset()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 24 2023 at 10:47, Huacai Chen wrote:
> On Thu, Aug 24, 2023 at 6:03 AM Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
>> +unsigned long tick_estimate_stale_jiffies(void)
>> +{
>> +       ktime_t delta = ktime_get_mono_fast_ns() - READ_ONCE(last_jiffies_update);
>> +
>> +       return delta < 0 ? 0 : div_s64(delta, TICK_NSEC);
>> +}
>> +
>>  /*
>>   * Must be called with interrupts disabled !
>>   */
> Thank you for your advice, now the latest proposal is here [1], this
> is very similar to your diff, please take a look.

Similar by some definition of similar.




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux