]> www.infradead.org Git - users/jedix/linux-maple.git/commit
softirq: Remove unused 'action' parameter from action callback
authorCaleb Sander Mateos <csander@purestorage.com>
Thu, 15 Aug 2024 17:15:40 +0000 (11:15 -0600)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 20 Aug 2024 15:13:40 +0000 (17:13 +0200)
commite68ac2b488495fa4d127d6105ce633849859957a
treee51967f78ada2e341c3c5f057ea757fd671724d2
parent24d02c4e53e2f02da16b2ae8a1bc92553110ca25
softirq: Remove unused 'action' parameter from action callback

When soft interrupt actions are called, they are passed a pointer to the
struct softirq action which contains the action's function pointer.

This pointer isn't useful, as the action callback already knows what
function it is. And since each callback handles a specific soft interrupt,
the callback also knows which soft interrupt number is running.

No soft interrupt action callback actually uses this parameter, so remove
it from the function pointer signature. This clarifies that soft interrupt
actions are global routines and makes it slightly cheaper to call them.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Link: https://lore.kernel.org/all/20240815171549.3260003-1-csander@purestorage.com
block/blk-mq.c
include/linux/interrupt.h
kernel/rcu/tiny.c
kernel/rcu/tree.c
kernel/sched/fair.c
kernel/softirq.c
kernel/time/hrtimer.c
kernel/time/timer.c
lib/irq_poll.c
net/core/dev.c