git: 0dc8e3fe6fd1 - stable/13 - mps/mpr: Relax doorbell polling precision.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 23 Jan 2022 19:59:49 UTC
The branch stable/13 has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=0dc8e3fe6fd1e6a79a840dd3b518e088076f7cda commit 0dc8e3fe6fd1e6a79a840dd3b518e088076f7cda Author: Alexander Motin <mav@FreeBSD.org> AuthorDate: 2022-01-08 02:30:12 +0000 Commit: Alexander Motin <mav@FreeBSD.org> CommitDate: 2022-01-23 19:57:35 +0000 mps/mpr: Relax doorbell polling precision. It does not matter how often do we check firmware for crashes. MFC after: 2 weeks (cherry picked from commit 1849bc5f3ff04c128e85173aa84472a19b784e64) --- sys/dev/mpr/mpr.c | 3 ++- sys/dev/mps/mps.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/mpr/mpr.c b/sys/dev/mpr/mpr.c index 3de4b1050fa7..0f4c5c906216 100644 --- a/sys/dev/mpr/mpr.c +++ b/sys/dev/mpr/mpr.c @@ -2250,7 +2250,8 @@ mpr_periodic(void *arg) mpr_reinit(sc); } - callout_reset(&sc->periodic, MPR_PERIODIC_DELAY * hz, mpr_periodic, sc); + callout_reset_sbt(&sc->periodic, MPR_PERIODIC_DELAY * SBT_1S, 0, + mpr_periodic, sc, C_PREL(1)); } static void diff --git a/sys/dev/mps/mps.c b/sys/dev/mps/mps.c index b4e0142204ef..956a0301e70a 100644 --- a/sys/dev/mps/mps.c +++ b/sys/dev/mps/mps.c @@ -2092,7 +2092,8 @@ mps_periodic(void *arg) mps_reinit(sc); } - callout_reset(&sc->periodic, MPS_PERIODIC_DELAY * hz, mps_periodic, sc); + callout_reset_sbt(&sc->periodic, MPS_PERIODIC_DELAY * SBT_1S, 0, + mps_periodic, sc, C_PREL(1)); } static void