提交 377b8fc6 编写于 作者: A Asai Thambi S P 提交者: Jens Axboe

mtip32xx: minor performance tweak

When checking for command completions if the register value is zero, proceed
to next register.
Signed-off-by: NAsai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: NJens Axboe <axboe@kernel.dk>
上级 e602878f
......@@ -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]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册