]> git.karo-electronics.de Git - linux-beck.git/commit
i40e/i40evf: Use usleep_range() instead of udelay()
authorNeerav Parikh <neerav.parikh@intel.com>
Sat, 13 Sep 2014 07:40:44 +0000 (07:40 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 24 Oct 2014 03:38:03 +0000 (20:38 -0700)
commitf98a20068dfcc16d1292d3e4d0d690e123da1538
treeb55ac83c349eecd0bad3688441e708e16e0870d8
parent8c570dcc8cbabd7bf1a8eb7eb7cc16a1a37b6c0f
i40e/i40evf: Use usleep_range() instead of udelay()

As per the Documentation/timers/timers-howto.txt it is preferred to use
usleep_range() instead of udelay() if the delay value is > 10us in
non-atomic contexts.
So, replacing all the instances of udelay() with 10 or greater than 10
micro seconds delay in the driver and using usleep_range() instead.

Change-ID: Iaa2ab499a4c26f6005e5d86cc421407ef9de16c7
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Neerav Parikh <neerav.parikh@intel.com>
Tested-by: Jim Young <jamesx.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
drivers/net/ethernet/intel/i40evf/i40evf_main.c