From: zze-COLBUS Emmanuel RD-MAPS-GRE This code uses the x86 (non-AMD-ELAN) value of CLOCK_TICK_RATE instead of CLOCK_TICK_RATE itself, which is wrong for other archs. Signed-off-by: Emmanuel Colbus Signed-off-by: Andrew Morton --- drivers/char/vt_ioctl.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff -puN drivers/char/vt_ioctl.c~adapt-drivers-char-vt_ioctlc-to-non-x86 drivers/char/vt_ioctl.c --- 25/drivers/char/vt_ioctl.c~adapt-drivers-char-vt_ioctlc-to-non-x86 Fri Jun 24 16:29:31 2005 +++ 25-akpm/drivers/char/vt_ioctl.c Fri Jun 24 16:29:31 2005 @@ -25,6 +25,7 @@ #include #include #include +#include #include #include @@ -386,7 +387,7 @@ int vt_ioctl(struct tty_struct *tty, str if (!perm) return -EPERM; if (arg) - arg = 1193182 / arg; + arg = CLOCK_TICK_RATE / arg; kd_mksound(arg, 0); return 0; @@ -403,7 +404,7 @@ int vt_ioctl(struct tty_struct *tty, str ticks = HZ * ((arg >> 16) & 0xffff) / 1000; count = ticks ? (arg & 0xffff) : 0; if (count) - count = 1193182 / count; + count = CLOCK_TICK_RATE / count; kd_mksound(count, ticks); return 0; } _