From: Ben Hutchings Date: Thu, 26 Feb 2015 20:35:05 +0000 (+0000) Subject: sh_eth: Mitigate lost statistics updates X-Git-Tag: omap-for-v4.1/fixes-rc1~141^2~349^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4398f9c817028b3b654923b3b614ea174cbc2c67;p=pandora-kernel.git sh_eth: Mitigate lost statistics updates The statistics registers have write-clear behaviour, which means we will lose any increment between the read and write. Mitigate this by only clearing when we read a non-zero value, so we will never falsely report a total of zero. This also saves time as we only handle error statistics here and they won't often be incremented. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller --- Reading git-diff-tree failed