]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
slab: remove unused PREEMPT_RT specific macros
authorVlastimil Babka <vbabka@suse.cz>
Fri, 23 Jan 2026 06:52:55 +0000 (07:52 +0100)
committerVlastimil Babka <vbabka@suse.cz>
Thu, 29 Jan 2026 08:29:27 +0000 (09:29 +0100)
commit6c2f307f30edbe2b18a35584f01854a27e375927
treead9568ea47ddc27133574b5b5b774caaf50dc789
parent32c894c7274b7ce901041ce6dceeca3ec1152205
slab: remove unused PREEMPT_RT specific macros

The macros slub_get_cpu_ptr()/slub_put_cpu_ptr() are now unused, remove
them. USE_LOCKLESS_FAST_PATH() has lost its true meaning with the code
being removed. The only remaining usage is in fact testing whether we
can assert irqs disabled, because spin_lock_irqsave() only does that on
!RT. Test for CONFIG_PREEMPT_RT instead.

Reviewed-by: Hao Li <hao.li@linux.dev>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slub.c