Skip to content

Commit 56302c5

Browse files
Bogdan PurcareataScott Wood
authored andcommitted
powerpc/mpic: Remove WHOAMI readback after EOI
After previous discussions regarding the subject [1][2], there's no clear explanation or reason why the call was needed in the first place. The sensible argument is some sort of synchronization between the CPU and the MPIC, which hasn't been pointed out precisely and is no longer required (at least on BookE platforms). The benefit of this change is saving a MMIO trap per interrupt when running in a KVM guest. [1] https://patchwork.ozlabs.org/patch/429098/ [2] https://patchwork.ozlabs.org/patch/433557/ Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
1 parent 88b7936 commit 56302c5

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎arch/powerpc/sysdev/mpic.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,6 @@ static inline struct mpic * mpic_from_irq_data(struct irq_data *d)
655655
static inline void mpic_eoi(struct mpic *mpic)
656656
{
657657
mpic_cpu_write(MPIC_INFO(CPU_EOI), 0);
658-
(void)mpic_cpu_read(MPIC_INFO(CPU_WHOAMI));
659658
}
660659

661660
/*

0 commit comments

Comments
 (0)