]> www.infradead.org Git - users/jedix/linux-maple.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)
committerBrian Maly <brian.maly@oracle.com>
Fri, 4 Sep 2015 21:00:47 +0000 (17:00 -0400)
commita950365945ef1303959324de1f5d4a16ec815e05
treea4ad1bd072a67a84d325d67de5b0a5a02d981240
parentdde07186bf0c3f61a2eed64d38f2fda2ed62a5e2
e1000e: Fix tight loop implementation of systime read algorithm

Orabug: 21792108

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>
(cherry picked from commit 37b12910dd11d9ab969f2c310dc9160b7f3e3405)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/e1000e/netdev.c