mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
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>
This commit is contained in:
parent
e602878fd8
commit
377b8fc6d7
1 changed files with 2 additions and 0 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue