[PATCH 5.10 004/135] net/mlx5: Refactor init clock function