CHROMIUM: ath9k: Do not divide by zero cycle counter
authorPaul Stewart <pstew@chromium.org>
Fri, 27 Jul 2012 23:14:46 +0000 (16:14 -0700)
committerGerrit <chrome-bot@google.com>
Mon, 30 Jul 2012 15:48:59 +0000 (08:48 -0700)
commit1a85c9af9e6b65e8595c342331d6e5c01c16890c
tree441d663436a3444c85143171e1256568ee6b4e18
parent7468eb2aaeba7ab265f22ffe4a33c656ad9a9393
CHROMIUM: ath9k: Do not divide by zero cycle counter

cc_rxpoll.cycles can be zero under certain circumstances.
Skip this round of rx hang detection when this happens.

Signed-off-by: Paul Stewart <pstew@chromium.org>
BUG=chromium-os:32956
TEST=Reboot system.  Still waiting to see this message.

Change-Id: Id0a6d4b01137af4c36a27424615c30c52ed05fd8
Reviewed-on: https://gerrit.chromium.org/gerrit/28642
Reviewed-by: Simon Que <sque@chromium.org>
Reviewed-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Reviewed-by: Darin Petkov <petkov@chromium.org>
Commit-Ready: Paul Stewart <pstew@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
drivers/net/wireless/ath/ath9k/main.c