diff options
author | Arnd Bergmann <arnd@arndb.de> | 2010-08-28 20:35:17 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-08-28 21:39:09 -0700 |
commit | 2c4e9671edfef534e9726366707d64e63d44e7e6 (patch) | |
tree | 79d1e786e962eba6a7e12309a022b52d9d913126 /net | |
parent | d9f66c1a46163c7c83411058516a69da547262f8 (diff) | |
download | blackbird-obmc-linux-2c4e9671edfef534e9726366707d64e63d44e7e6.tar.gz blackbird-obmc-linux-2c4e9671edfef534e9726366707d64e63d44e7e6.zip |
Input: use PIT_TICK_RATE in vt beep ioctl
The KIOCSOUND and KDMKTONE ioctls are based on the CLOCK_TICK_RATE,
which is architecture and sometimes configuration specific.
In practice, most user applications assume that it is actually defined
as the i8253 PIT base clock of 1193182 Hz, which is true on some
architectures but not on others.
This patch makes the vt code use the PIT frequency on all
architectures, which is much more well-defined. It will change the
behavior of user applications sending the beep ioctl on all
architectures that define CLOCK_TICK_RATE different from
PIT_TICK_RATE.
The original breakage was introduced in commit bcc8ca099 "Adapt
drivers/char/vt_ioctl.c to non-x86". Hopefully, reverting this change
will make the frequency correct in more cases than it will make it
incorrect.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions