Skip to contentSkip to conversation

mtip32xx: minor performance tweak

PATCH In review Asai Thambi S P 1 participant 1 message May 30, 2012 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 8/11 mtip32xx: minor performance tweak

When checking for command completions if the register value is zero, proceed to next register.

---
 drivers/block/mtip32xx/mtip32xx.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/block/mtip32xx/mtip32xx.c +2 -0
index acc1d6f..d0fa357 100644
@@ -970,6 +970,8 @@ static inline void mtip_process_sdbf(struct driver_data *dd)
 	/* walk all bits in all slot groups */
 	for (group = 0; group < dd->slot_groups; group++) {
 		completed = readl(port->completed[group]);
+		if (!completed)
+			continue;
 
 		/* clear completed status register in the hardware.*/
 		writel(completed, port->completed[group]);
Signature · 1 line
1.7.1