]> git.baikalelectronics.ru Git - kernel.git/commit
e1000e: e1000e_cyclecounter_read(): incvalue is 32 bits, not 64
authorDenys Vlasenko <dvlasenk@redhat.com>
Wed, 20 Apr 2016 15:45:54 +0000 (17:45 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 13 May 2016 21:46:45 +0000 (14:46 -0700)
commitdc751691b9d27c9c1de9a99b298bee1b310cbaae
tree778ebc482001afc2a817fe893bc25c2c4fbab8dc
parent266688596633cb9a0407c7bd047181b9a4d4bc3e
e1000e: e1000e_cyclecounter_read(): incvalue is 32 bits, not 64

"incvalue" variable holds a result of "er32(TIMINCA) &
E1000_TIMINCA_INCVALUE_MASK" and used in "do_div(temp, incvalue)"
as a divisor.

Thus, "u64 incvalue" declaration is probably a mistake.
Even though it seems to be a harmless one, let's fix it.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.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