]> www.infradead.org Git - users/dwmw2/linux.git/commit
timers/migration: Use a single struct for hierarchy walk data
authorAnna-Maria Behnsen <anna-maria@linutronix.de>
Tue, 16 Jul 2024 14:19:22 +0000 (16:19 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 22 Jul 2024 16:03:34 +0000 (18:03 +0200)
commit3ba111032bc1d8a0f04e6d2a5d8fb4ddc96eeae7
treef5ad92f6e6ac7c7a84e65b9e506f19db2ef59999
parent92506741521fd09dfaa9d6ef3c3620a9dd6bbafd
timers/migration: Use a single struct for hierarchy walk data

Two different structs are defined for propagating data from one to another
level when walking the hierarchy. Several struct members exist in both
structs which makes generalization harder.

Merge those two structs into a single one and use it directly in
walk_groups() and the corresponding function pointers instead of
introducing pointer casting all over the place.

Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lore.kernel.org/r/20240716-tmigr-fixes-v4-4-757baa7803fe@linutronix.de
kernel/time/timer_migration.c