projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e602878
)
mtip32xx: minor performance tweak
author
Asai Thambi S P
<asamymuthupa@micron.com>
Wed, 30 May 2012 01:44:01 +0000
(18:44 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Thu, 31 May 2012 06:46:50 +0000
(08:46 +0200)
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>
drivers/block/mtip32xx/mtip32xx.c
patch
|
blob
|
history
diff --git
a/drivers/block/mtip32xx/mtip32xx.c
b/drivers/block/mtip32xx/mtip32xx.c
index cd271d5e1b73a5a100a513fe4953cbb44f11bf2d..29735316730a9e90f2bf03e5429001a5308acad0 100644
(file)
--- 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]);