From: Nicolai Stange Date: Fri, 27 Jul 2018 10:46:29 +0000 (+0200) Subject: x86/irq: Demote irq_cpustat_t::__softirq_pending to u16 X-Git-Tag: Ubuntu-5.2.0-15.16~3834^2~16 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=9aee5f8a7e30330d0a8f4c626dc924ca5590aba5;p=mirror_ubuntu-eoan-kernel.git x86/irq: Demote irq_cpustat_t::__softirq_pending to u16 An upcoming patch will extend KVM's L1TF mitigation in conditional mode to also cover interrupts after VMEXITs. For tracking those, stores to a new per-cpu flag from interrupt handlers will become necessary. In order to improve cache locality, this new flag will be added to x86's irq_cpustat_t. Make some space available there by shrinking the ->softirq_pending bitfield from 32 to 16 bits: the number of bits actually used is only NR_SOFTIRQS, i.e. 10. Suggested-by: Paolo Bonzini Signed-off-by: Nicolai Stange Signed-off-by: Thomas Gleixner Reviewed-by: Paolo Bonzini --- diff --git a/arch/x86/include/asm/hardirq.h b/arch/x86/include/asm/hardirq.h index 740a428acf1e..e39c606de6f6 100644 --- a/arch/x86/include/asm/hardirq.h +++ b/arch/x86/include/asm/hardirq.h @@ -6,7 +6,7 @@ #include typedef struct { - unsigned int __softirq_pending; + u16 __softirq_pending; unsigned int __nmi_count; /* arch dependent */ #ifdef CONFIG_X86_LOCAL_APIC unsigned int apic_timer_irqs; /* arch dependent */