git: 1849bc5f3ff0 - main - mps/mpr: Relax doorbell polling precision.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 08 Jan 2022 02:34:54 UTC
The branch main has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=1849bc5f3ff04c128e85173aa84472a19b784e64 commit 1849bc5f3ff04c128e85173aa84472a19b784e64 Author: Alexander Motin <mav@FreeBSD.org> AuthorDate: 2022-01-08 02:30:12 +0000 Commit: Alexander Motin <mav@FreeBSD.org> CommitDate: 2022-01-08 02:34:49 +0000 mps/mpr: Relax doorbell polling precision. It does not matter how often do we check firmware for crashes. MFC after: 2 weeks --- 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