Skip to content

Commit

Permalink
mtip32xx: minor performance tweak
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Asai Thambi S P authored and Jens Axboe committed May 31, 2012
1 parent e602878 commit 377b8fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/block/mtip32xx/mtip32xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 377b8fc

Please sign in to comment.