mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Change the hz warning so that it doesn't bother you if hz is already
set to 1000 or greater, and take out the check to see if hz is greater than the requested tick rate.
This commit is contained in:
parent
7ff680cc04
commit
c9ac4e0cd1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=144364
1 changed files with 2 additions and 2 deletions
|
@ -268,9 +268,9 @@ rtc_ioctl(dev_t dev, u_long cmd, caddr_t arg, int mode, struct proc *p)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
sc->var.freq = freq;
|
sc->var.freq = freq;
|
||||||
if (sc->var.freq * 9 > hz * 8) {
|
if ((sc->var.freq > hz) && (hz < 1000)) {
|
||||||
sc->var.freq = hz;
|
sc->var.freq = hz;
|
||||||
printf("rtc: %d > kern.hz: Timing will be inaccurate, please increase hz.\n", sc->var.freq);
|
printf("rtc: %d > kern.hz: Timing will be inaccurate, please increase kern.hz.\n", sc->var.freq);
|
||||||
}
|
}
|
||||||
sleep = hz / sc->var.freq;
|
sleep = hz / sc->var.freq;
|
||||||
DLog(Linfo, "Set RTC freq %d", sc->var.freq);
|
DLog(Linfo, "Set RTC freq %d", sc->var.freq);
|
||||||
|
|
Loading…
Add table
Reference in a new issue