mm/vmstat: Use preempt_[dis|en]able_nested()
authorThomas Gleixner <tglx@linutronix.de>
Thu, 25 Aug 2022 16:41:26 +0000 (18:41 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 19 Sep 2022 12:35:08 +0000 (14:35 +0200)
commit7a025e91abd23effe869a05d037b26770ffa0309
tree10e44afc87bcb0a3b4aec08c28028b3344692a59
parent93f6d4e1893657f07ba3c9e2bfa74b355a0b32f9
mm/vmstat: Use preempt_[dis|en]able_nested()

Replace the open coded CONFIG_PREEMPT_RT conditional
preempt_enable/disable() pairs with the new helper functions which hide
the underlying implementation details.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Link: https://lore.kernel.org/r/20220825164131.402717-4-bigeasy@linutronix.de
mm/vmstat.c