]> 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)
commit677cd2522be897f1dcac18cc51c45982d44b70d0
treea4bbf4093be1e158a79e4e9355085a13b5f28478
parentd55fa616624d86d45d16f219482d6c4c330a3188
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