Skip to content

tick/nohz: Tick dependency quick check + cleanups

Frederic Weisbecker lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 22 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8jiffies: Remove HZ > USEC_PER_SEC special casekernel/time/time.c+8 -61 reply
2/8apm32: Fix cputime == jiffies assumptionarch/x86/kernel/apm_32.c+1 -11 reply
3/8alpha: Fix jiffies based cputime assumptionarch/alpha/kernel/osf_sys.c+9 -41 reply
4/8nohz: Remove idle task special casekernel/time/tick-sched.c+3 -53 replies
5/8nohz: Restart the tick from irq exitinclude/linux/tick.h kernel/time/tick-sched.c+10 -3210 replies
6/8nohz: Move tick_nohz_restart_sched_tick() above its userskernel/time/tick-sched.c+16 -181 reply
7/8nohz: Evaluate tick dependency once on context switchkernel/time/tick-sched.c kernel/time/tick-sched.h+47 -225 replies
8/8nohz: Remove useless argument on tick_nohz_task_switch()include/linux/tick.h kernel/sched/core.c kernel/time/tick-sched.c+6 -60 replies

Reviews trailers per patch

6 of 8 patches have a Reviewed-by or Acked-by.

PatchRik van Riel
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] tick/nohz: Tick dependency quick check + cleanups

Thomas suggested a few month ago to make the tick dependency check more synchronous. Instead of checking asynchronously from each interrupt if the tick can be stopped, every subsystem that may have a tick dependency should set itself a flag specifying the state of that dependency. This way we can verify if we can stop the tick with a single lightweight mask check.

This patchset introduces that. There is still room for optimizations.

Also in a further series I would like to piggyback on the scheduler interrupt to restart the tick in case of remote wakeups. The tick restart from Irq exit prepares for that.

git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git
timers/core-v2

HEAD: e5470c6cd483edb77d6c8398b3f1479aa0eba215

Thanks,
Frederic
---

Frederic Weisbecker (8):
jiffies: Remove HZ > USEC_PER_SEC special case
apm32: Fix cputime == jiffies assumption
alpha: Fix jiffies based cputime assumption
nohz: Remove idle task special case
nohz: Restart the tick from irq exit
nohz: Move tick_nohz_restart_sched_tick() above its users
nohz: Evaluate tick dependency once on context switch
nohz: Remove useless argument on tick_nohz_task_switch()

 arch/alpha/kernel/osf_sys.c |  13 +++--
 arch/x86/kernel/apm_32.c    |   2 +-
 include/linux/tick.h        |  16 ++----
 kernel/sched/core.c         |   2 +-
 kernel/time/tick-sched.c    | 127 ++++++++++++++++++++++----------------------
 kernel/time/tick-sched.h    |   6 +++
 kernel/time/time.c          |  14 ++---
 7 files changed, 93 insertions(+), 87 deletions(-)