• Peter Zijlstra's avatar
    x86/percpu, x86/irq: Relax {set,get}_irq_regs() · 602447f9
    Peter Zijlstra authored
    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: default avatarNadav Amit <nadav.amit@gmail.com>
    Signed-off-by: default avatarPeter 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: default avatarIngo Molnar <mingo@kernel.org>
    602447f9
irq_regs.h 683 Bytes