diff options
author | Warner Losh <imp@FreeBSD.org> | 2021-11-03 21:55:32 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2021-11-03 22:03:51 +0000 |
commit | 072d5b98c4318e20248a6fbea4a5ca7c96992cac (patch) | |
tree | 9e77c1a90a9947a8527f260f98a79e7c93ea101f /sys/i386/i386/trap.c | |
parent | 6b67753488cb506f05694c5f6d2e74cf53497c54 (diff) | |
download | src-072d5b98c4318e20248a6fbea4a5ca7c96992cac.tar.gz src-072d5b98c4318e20248a6fbea4a5ca7c96992cac.zip |
sysbeep: Adjust interface to take a duration as a sbt
Change the 'period' argument to 'duration' and change its type to
sbintime_t so we can more easily express different durations.
Reviewed by: tsoome, glebius
Differential Revision: https://reviews.freebsd.org/D32619
Diffstat (limited to 'sys/i386/i386/trap.c')
-rw-r--r-- | sys/i386/i386/trap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c index 07abac23c9da..d770cf808f5f 100644 --- a/sys/i386/i386/trap.c +++ b/sys/i386/i386/trap.c @@ -414,7 +414,7 @@ user_trctrap_out: #endif if (time_second - lastalert > 10) { log(LOG_WARNING, "NMI: power fail\n"); - sysbeep(880, hz); + sysbeep(880, SBT_1S); lastalert = time_second; } return; @@ -671,7 +671,7 @@ kernel_trctrap: #ifdef POWERFAIL_NMI if (time_second - lastalert > 10) { log(LOG_WARNING, "NMI: power fail\n"); - sysbeep(880, hz); + sysbeep(880, SBT_1S); lastalert = time_second; } return; |