]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
posix-cpu-timers: Create a container struct
authorThomas Gleixner <tglx@linutronix.de>
Wed, 21 Aug 2019 19:09:04 +0000 (21:09 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Aug 2019 09:50:33 +0000 (11:50 +0200)
commit2b69942f9021bf75bd1b001f53bd2578361fadf3
tree1d51a30bd34edc3c0a723a306199b1018e404db3
parentab693c5a5e3107f035d5162e6ada9aaf7dd76a1d
posix-cpu-timers: Create a container struct

Per task/process data of posix CPU timers is all over the place which
makes the code hard to follow and requires ifdeffery.

Create a container to hold all this information in one place, so data is
consolidated and the ifdeffery can be confined to the posix timer header
file and removed from places like fork.

As a first step, move the cpu_timers list head array into the new struct
and clean up the initializers and simplify fork. The remaining #ifdef in
fork will be removed later.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lkml.kernel.org/r/20190821192920.819418976@linutronix.de
include/linux/init_task.h
include/linux/posix-timers.h
include/linux/sched.h
include/linux/sched/signal.h
kernel/fork.c
kernel/time/posix-cpu-timers.c