]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
x86/percpu, x86/irq: Relax {set,get}_irq_regs()
authorPeter Zijlstra <peterz@infradead.org>
Wed, 27 Feb 2019 08:53:46 +0000 (09:53 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 17 Jun 2019 10:43:42 +0000 (12:43 +0200)
commit602447f95461469e20c81254c1c08be23a46fe53
tree301cde85cd4ff11e35efa524f2a602851fb5b6de
parent9ed7d75b2f09d836e71d597cd5879abb1a44e7a9
x86/percpu, x86/irq: Relax {set,get}_irq_regs()

Nadav reported that since the this_cpu_*() ops got asm-volatile
constraints on, code generation suffered for do_IRQ(), but since this
is all with IRQs disabled we can use __this_cpu_*().

  smp_x86_platform_ipi                                      234        222   -12,+0
  smp_kvm_posted_intr_ipi                                    74         66   -8,+0
  smp_kvm_posted_intr_wakeup_ipi                             86         78   -8,+0
  smp_apic_timer_interrupt                                  292        284   -8,+0
  smp_kvm_posted_intr_nested_ipi                             74         66   -8,+0
  do_IRQ                                                    195        187   -8,+0

Reported-by: Nadav Amit <nadav.amit@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/irq_regs.h