[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87il94dbjt.ffs@tglx>
Date: Thu, 24 Aug 2023 11:39:18 +0200
From: Thomas Gleixner <tglx@...utronix.de>
To: Huacai Chen <chenhuacai@...nel.org>
Cc: Joel Fernandes <joel@...lfernandes.org>,
Z qiang <qiang.zhang1211@...il.com>, paulmck@...nel.org,
Huacai Chen <chenhuacai@...ngson.cn>,
Frederic Weisbecker <frederic@...nel.org>,
Neeraj Upadhyay <quic_neeraju@...cinc.com>,
Josh Triplett <josh@...htriplett.org>,
Boqun Feng <boqun.feng@...il.com>,
Ingo Molnar <mingo@...nel.org>,
John Stultz <jstultz@...gle.com>,
Stephen Boyd <sboyd@...nel.org>,
Steven Rostedt <rostedt@...dmis.org>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
Lai Jiangshan <jiangshanlai@...il.com>,
Sergey Senozhatsky <senozhatsky@...omium.org>,
rcu@...r.kernel.org, linux-kernel@...r.kernel.org,
stable@...r.kernel.org, Binbin Zhou <zhoubinbin@...ngson.cn>
Subject: Re: [PATCH V4 2/2] rcu: Update jiffies in rcu_cpu_stall_reset()
On Thu, Aug 24 2023 at 10:47, Huacai Chen wrote:
> On Thu, Aug 24, 2023 at 6:03 AM Thomas Gleixner <tglx@...utronix.de> 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.
Powered by blists - more mailing lists