diff options
author | silby <silby@FreeBSD.org> | 2005-10-06 14:38:38 +0800 |
---|---|---|
committer | silby <silby@FreeBSD.org> | 2005-10-06 14:38:38 +0800 |
commit | a3aa76f85e7a25b7213eacb278a8698340a95c1d (patch) | |
tree | ed25fa87cc7a354f6c34f9aac9088435ae71722b /emulators | |
parent | c6565492df739ee368d1ae4aee9437f623ccba27 (diff) | |
download | freebsd-ports-gnome-a3aa76f85e7a25b7213eacb278a8698340a95c1d.tar.gz freebsd-ports-gnome-a3aa76f85e7a25b7213eacb278a8698340a95c1d.tar.zst freebsd-ports-gnome-a3aa76f85e7a25b7213eacb278a8698340a95c1d.zip |
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.
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/rtc/files/rtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/emulators/rtc/files/rtc.c b/emulators/rtc/files/rtc.c index 4e241adee923..71af426bd82e 100644 --- a/emulators/rtc/files/rtc.c +++ b/emulators/rtc/files/rtc.c @@ -268,9 +268,9 @@ rtc_ioctl(dev_t dev, u_long cmd, caddr_t arg, int mode, struct proc *p) break; } sc->var.freq = freq; - if (sc->var.freq * 9 > hz * 8) { + if ((sc->var.freq > hz) && (hz < 1000)) { 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; DLog(Linfo, "Set RTC freq %d", sc->var.freq); |