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: NEric Dumazet <edumazet@google.com> Signed-off-by: NTanner Love <tannerlove@google.com> Signed-off-by: NThomas Gleixner <tglx@linutronix.de> Reviewed-by: NEric Dumazet <edumazet@google.com> Reviewed-by: NKees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20210602180338.3324213-1-tannerlove.kernel@gmail.com
Showing
想要评论请 注册 或 登录