]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mlxsw: qos_defprio: Use until_counter_is
authorPetr Machata <petrm@mellanox.com>
Mon, 2 Mar 2020 17:56:05 +0000 (19:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2020 01:03:52 +0000 (17:03 -0800)
commit1efc0a3140829b599923473622178d070b32ee6c
tree16c747294d1c34d561dc1bcd87626bbb996f4ebb
parent23cca962640f9692769bbbdda0f8556bd9dc3ef4
selftests: mlxsw: qos_defprio: Use until_counter_is

Instead of hand-coding the busywait() predicate, use the until_counter_is()
introduced recently.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Amit Cohen <amitc@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/qos_defprio.sh