summaryrefslogtreecommitdiffstats
path: root/drivers/block/mtip32xx
diff options
context:
space:
mode:
authorAsai Thambi S P <asamymuthupa@micron.com>2012-05-29 18:44:01 -0700
committerJens Axboe <axboe@kernel.dk>2012-05-31 08:46:50 +0200
commit377b8fc6d70aab90ccfc053630c65835defbc3f8 (patch)
treedf4480f4d5c0a60dfe535e1ae916bc5ae53f36c5 /drivers/block/mtip32xx
parente602878fd89dab0af2af995a6bef0fbe97b20dc8 (diff)
downloadblackbird-op-linux-377b8fc6d70aab90ccfc053630c65835defbc3f8.tar.gz
blackbird-op-linux-377b8fc6d70aab90ccfc053630c65835defbc3f8.zip
mtip32xx: minor performance tweak
When checking for command completions if the register value is zero, proceed to next register. Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/mtip32xx')
-rw-r--r--drivers/block/mtip32xx/mtip32xx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c
index cd271d5e1b73..29735316730a 100644
--- a/drivers/block/mtip32xx/mtip32xx.c
+++ b/drivers/block/mtip32xx/mtip32xx.c
@@ -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]);
OpenPOWER on IntegriCloud