Files
Narayan Reddy 53c6e3ffc4 osi: core: use appropriate sleep function
issue: on some setups link partner is not connected
and hence the sw retries for the link with a delay of
100msec for every retry. In case of HVRTOS udelay is a
busy loop and it starves other tasks on the CPU.

Fix: Use udelay for small wait checks, and usleep
for larger delays.

Bug 5278971

Change-Id: If2c29475dbd552a8da549668460385f9402e612b
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/3371471
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com>
2025-05-31 10:04:53 -07:00
..