Damien Le Moal 1754dfd2e7 PCI: epf-test: Simplify transfers result print
In pci_epf_test_print_rate(), instead of open coding a reduction loop to
allow for a division by a 32-bits ns value, simply use div64_u64() to
calculate the transfer rate. To match the printed unit of KB/s, this
calculation divides the rate by 1000 instead of 1024 (that would be KiB/s
unit).

Change the format of the results printed by pci_epf_test_print_rate() to be
more compact without the double new line. Also use dev_info() instead of
pr_info().

Link: https://lore.kernel.org/r/20230415023542.77601-14-dlemoal@kernel.org
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
2023-06-23 15:03:10 -05:00
..
2023-04-27 17:17:12 -07:00
2023-04-20 16:16:34 -05:00
2023-04-20 16:16:33 -05:00
2023-04-27 10:45:30 -07:00
2021-06-16 17:20:40 -05:00
2023-04-27 10:45:30 -07:00
2023-04-27 11:53:57 -07:00
2023-04-30 11:51:51 -07:00
2023-04-30 11:51:51 -07:00
2023-04-30 11:51:51 -07:00
2021-02-10 16:46:29 -06:00
2021-09-28 13:43:17 -05:00
2020-08-05 18:23:14 -05:00