mailbox: bcm-pdc: Performance improvements
authorRob Rice <rob.rice@broadcom.com>
Mon, 14 Nov 2016 18:26:03 +0000 (13:26 -0500)
committerJassi Brar <jaswinder.singh@linaro.org>
Mon, 19 Dec 2016 14:40:22 +0000 (20:10 +0530)
commit63bb50bdb997f4bede1b5f2d56645f393f7f39fb
treea9dc04c94d42199070b742e050db30d624c8e170
parent38ed49ed4a99942f1a340f4a82a5a8b492e3463b
mailbox: bcm-pdc: Performance improvements

Three changes to improve performance in the PDC driver:
- disable and reenable interrupts while the interrupt handler is
running
- update rxin and txin descriptor indexes more efficiently
- group receive descriptor context into a structure and keep
context in a single array rather than five to improve locality
of reference

Signed-off-by: Rob Rice <rob.rice@broadcom.com>
Reviewed-by: Andy Gospodarek <gospo@broadcom.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/bcm-pdc-mailbox.c