]> git.baikalelectronics.ru Git - kernel.git/commit
e1000e: Fix tight loop implementation of systime read algorithm
authorRaanan Avargil <raanan.avargil@intel.com>
Sun, 19 Jul 2015 13:33:20 +0000 (16:33 +0300)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 5 Aug 2015 23:53:48 +0000 (16:53 -0700)
commite0dc568a219220269b142e9cbae0fa6170d68633
tree153dfbbf9c83135c0e13fbeba8e62ab093b4d8b8
parent139ab1714ff85e1bdf0a43984e85248073694d1c
e1000e: Fix tight loop implementation of systime read algorithm

Change the algorithm. Read systimel twice and check for overflow.
If there was no overflow, use the first value.
If there was an overflow, read systimeh again and use the second
systimel value.

Signed-off-by: Raanan Avargil <raanan.avargil@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/netdev.c