CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2019/06/22 14:30:42

Modified files:
        sys/arch/sparc64/dev: beep.c beeper.c 

Log message:
Use timeout_add_msec(9)

hz can simply be reduced has the code wants to wait
(period * hz) / 1000 [ticks] = period / 1000 [s] = period [ms].

With the zero check, this perfectly matches the millisecond version.

This conversion by itself also lifts the implicit expection of the period
to be evenly divisible by ten;  in case it was not, integer division
would truncate it.

See /sys/wscons/wskbd.c for how the period is set up.

OK mpi

Reply via email to