diff options
author | Tanner Love <tannerlove@google.com> | 2021-06-02 20:03:38 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2021-08-10 22:50:07 +0200 |
commit | 91cc470e797828d779cd4c1efbe8519bcb358bae (patch) | |
tree | 9f36cb2595cd78a8d9938d002800fb0bf7e9d8a6 /kernel/irq/matrix.c | |
parent | genirq/generic_chip: Use struct_size() in kzalloc() (diff) | |
download | linux-91cc470e797828d779cd4c1efbe8519bcb358bae.tar.xz linux-91cc470e797828d779cd4c1efbe8519bcb358bae.zip |
genirq: Change force_irqthreads to a static key
With CONFIG_IRQ_FORCED_THREADING=y, testing the boolean force_irqthreads
could incur a cache line miss in invoke_softirq() and other places.
Replace the test with a static key to avoid the potential cache miss.
[ tglx: Dropped the IDE part, removed the export and updated blk-mq ]
Suggested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Tanner Love <tannerlove@google.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210602180338.3324213-1-tannerlove.kernel@gmail.com
Diffstat (limited to 'kernel/irq/matrix.c')
0 files changed, 0 insertions, 0 deletions