]> www.infradead.org Git - users/jedix/linux-maple.git/commit
timers/migration: Spare write when nothing changed
authorAnna-Maria Behnsen <anna-maria@linutronix.de>
Tue, 16 Jul 2024 14:19:25 +0000 (16:19 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 22 Jul 2024 16:03:34 +0000 (18:03 +0200)
commit2367e28e231af05243b92325de9a38956ad0b565
tree59edb16133f4b5b41fc6ac4e187f2689a51898f3
parent835a9a67f54f01033417a254e53a1391f99db708
timers/migration: Spare write when nothing changed

The wakeup value is written unconditionally in tmigr_cpu_new_timer(). When
there was no new next timer expiry that needs to be propagated, then the
value that was read before is written. This is not required.

Move the write to the place where wakeup value is changed changed.

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-7-757baa7803fe@linutronix.de
kernel/time/timer_migration.c