]> git.baikalelectronics.ru Git - 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)
commita690e7ebda34caf1492cca94f39c7512caa404dc
treea4bbf4093be1e158a79e4e9355085a13b5f28478
parent5ea9e760869d9f581990a564fa8e6e97dd991682
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