From: Michael Albaugh Date: Tue, 2 Oct 2007 20:26:45 +0000 (-0700) Subject: IB/ipath: Maintain active time on all chips X-Git-Tag: v2.6.24-rc1~1453^2~7 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=192594d5230f447ef2df8de9d7902ac90d11c118;p=pandora-kernel.git IB/ipath: Maintain active time on all chips There is a count of "active hours" maintained in EEPROM, to aid troubleshooting. The definition of "active" is based on traffic exceeding a threshold in any given 5-second polling interval. As originally written, the check was inadvertently bypassed for chips whose counters were 64-bits wide, and only applied to chips with 32-bit wide counters. This patch moves the test for amount of traffic "out" to a more common location, rather than depending on a side-effect of the software emulation of 64-bit counts on chips whose hardware is only 32-bits wide. Signed-off-by: Michael Albaugh Signed-off-by: Roland Dreier --- Reading git-diff-tree failed