]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net-next/hinic:replace multiply and division operators
authorXue Chaojing <xuechaojing@huawei.com>
Tue, 20 Nov 2018 05:47:31 +0000 (05:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Nov 2018 18:38:08 +0000 (10:38 -0800)
commitebda9b46cebc9c1245fcfe96c76525717ef984cc
treea4bbf4093be1e158a79e4e9355085a13b5f28478
parenta421ce088ac8eb3591d2a1ae0ded2dcece72018f
net-next/hinic:replace multiply and division operators

To improve performance, this patch uses bit operations to replace
multiply and division operators.

Signed-off-by: Xue Chaojing <xuechaojing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c
drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h