]> www.infradead.org Git - users/jedix/linux-maple.git/commit
posix-timers: Move sequence logic into struct k_itimer
authorThomas Gleixner <tglx@linutronix.de>
Tue, 5 Nov 2024 08:14:48 +0000 (09:14 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 7 Nov 2024 01:14:45 +0000 (02:14 +0100)
commit647da5f709f112319c0d51e06f330d8afecb1940
treed4e72435fc95dfd2879d0197782f64c5299ca1b8
parentc2a4796a154bb952be1106911841aab2c8c17c4d
posix-timers: Move sequence logic into struct k_itimer

The posix timer signal handling uses siginfo::si_sys_private for handling
the sequence counter check. That indirection is not longer required and the
sequence count value at signal queueing time can be stored in struct
k_itimer itself.

This removes the requirement of treating siginfo::si_sys_private special as
it's now always zero as the kernel does not touch it anymore.

Suggested-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Link: https://lore.kernel.org/all/20241105064213.852619866@linutronix.de
include/linux/posix-timers.h
include/uapi/asm-generic/siginfo.h
kernel/signal.c
kernel/time/posix-timers.c