linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 0/8] hrtimers: Overhaul the clock_was_set() logic
@ 2021-04-27  8:25 Thomas Gleixner
  2021-04-27  8:25 ` [patch 1/8] hrtimer: Ensure timerfd notification for HIGHRES=n Thomas Gleixner
                   ` (7 more replies)
  0 siblings, 8 replies; 21+ messages in thread
From: Thomas Gleixner @ 2021-04-27  8:25 UTC (permalink / raw)
  To: LKML
  Cc: Anna-Maria Behnsen, Peter Zijlstra, Marcelo Tosatti,
	Frederic Weisbecker, Peter Xu, Nitesh Narayan Lal, Alex Belits,
	Rafael J. Wysocki, John Stultz

A recent patch from Marcelo to avoid IPIs when the clock was set

  https://lore.kernel.org/r/20210407135301.GA16985@fuller.cnet

made me look deeper into this.

That mechanism has caught some dust and bitrot over time and just making
clock_was_set() a little bit smarter does not make the code any better.

The following series addresses this by:

 - Fixing the cases where the clock_was_set() handling is incorrect
   depending on configuration or runtime conditions.

 - Distangle the resume notification and the clock-was-set mechanism
   to prepare for IPI avoidance

 - Adopt Marcelo's patch to the modified code and add some more smarts on
   top.

The series is also available from git:

  git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git hrtimer

Thanks,

	tglx
---
 fs/timerfd.c                |   16 +++
 include/linux/hrtimer.h     |    8 -
 kernel/time/hrtimer.c       |  217 ++++++++++++++++++++++++++++++++------------
 kernel/time/tick-common.c   |    7 +
 kernel/time/tick-internal.h |   12 ++
 kernel/time/timekeeping.c   |   36 ++++---
 6 files changed, 219 insertions(+), 77 deletions(-)

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2021-05-15  0:24 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-27  8:25 [patch 0/8] hrtimers: Overhaul the clock_was_set() logic Thomas Gleixner
2021-04-27  8:25 ` [patch 1/8] hrtimer: Ensure timerfd notification for HIGHRES=n Thomas Gleixner
2021-04-27  8:25 ` [patch 2/8] hrtimer: Force clock_was_set() handling for the HIGHRES=n, NOHZ=y case Thomas Gleixner
2021-05-12 14:59   ` Peter Zijlstra
2021-05-12 16:40     ` Thomas Gleixner
2021-04-27  8:25 ` [patch 3/8] timerfd: Provide timerfd_resume() Thomas Gleixner
2021-04-27  8:25 ` [patch 4/8] timekeeping: Distangle resume and clock-was-set events Thomas Gleixner
2021-04-27  8:25 ` [patch 5/8] time/timekeeping: Avoid invoking clock_was_set() twice Thomas Gleixner
2021-04-27  8:25 ` [patch 6/8] hrtimer: Add bases argument to clock_was_set() Thomas Gleixner
2021-04-27  8:25 ` [patch 7/8] hrtimer: Avoid unnecessary SMP function calls in clock_was_set() Thomas Gleixner
2021-05-13 14:59   ` Peter Zijlstra
2021-05-14 18:52     ` Thomas Gleixner
2021-05-14 23:28       ` Peter Zijlstra
2021-05-15  0:24         ` Thomas Gleixner
2021-04-27  8:25 ` [patch 8/8] hrtimer: Avoid more " Thomas Gleixner
2021-04-27 15:11   ` Marcelo Tosatti
2021-04-27 19:59     ` Thomas Gleixner
2021-04-30  7:12       ` [patch V2 " Thomas Gleixner
2021-04-30 16:49         ` Marcelo Tosatti
2021-05-13  7:47         ` Peter Zijlstra
2021-05-14 19:08           ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).