git: 1ebec3806eed - main - vfs: s/ppsratecheck/eventratecheck

From: Mateusz Guzik <mjg_at_FreeBSD.org>
Date: Fri, 24 Feb 2023 19:31:13 UTC
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=1ebec3806eed27f2f1ddba1960c1fef905befeb0

commit 1ebec3806eed27f2f1ddba1960c1fef905befeb0
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2023-02-24 19:30:49 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2023-02-24 19:30:49 +0000

    vfs: s/ppsratecheck/eventratecheck
    
    nfc
---
 sys/kern/vfs_mountroot.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/kern/vfs_mountroot.c b/sys/kern/vfs_mountroot.c
index 3c506378ad2f..79019c4bbc8e 100644
--- a/sys/kern/vfs_mountroot.c
+++ b/sys/kern/vfs_mountroot.c
@@ -987,7 +987,7 @@ vfs_mountroot_wait(void)
 
 	curfail = 0;
 	lastfail.tv_sec = 0;
-	ppsratecheck(&lastfail, &curfail, 1);
+	eventratecheck(&lastfail, &curfail, 1);
 	td = curthread;
 	while (1) {
 		g_waitidle(td);
@@ -996,7 +996,7 @@ vfs_mountroot_wait(void)
 			mtx_unlock(&root_holds_mtx);
 			break;
 		}
-		if (ppsratecheck(&lastfail, &curfail, 1)) {
+		if (eventratecheck(&lastfail, &curfail, 1)) {
 			printf("Root mount waiting for:");
 			TAILQ_FOREACH(h, &root_holds, list)
 				printf(" %s", h->who);