mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH][RFC] sort out CLOCK_TICK_RATE usage [0/3]
@ 2004-04-12  7:55 Thorsten Kranzkowski
  2004-04-12  7:57 ` [PATCH][RFC] sort out CLOCK_TICK_RATE usage [1/3] Thorsten Kranzkowski
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Thorsten Kranzkowski @ 2004-04-12  7:55 UTC (permalink / raw)
  To: linux-kernel
  Cc: rth, spyro, rmk, davidm, paulus, benh, jes, ralf, matthew, davem,
	wesolows, jdike, ak

Hello!

With every 2.6 kernel I tried the system speaker on my Alpha produces a 
rather unpleasant high pitched tone instead of the normal system beep.
This is because in p|cspkr.c the calculation of the counter values is
incorrectly based on CLOCK_TICK_RATE. 
To solve this problem I came up with these tree patches:

1/3:	introduce PIC_TICK_RATE constant. It seems this is not always
	the same value.
2/3:	use PIC_TICK_RATE in *spkr.c and some other places where the
	PIC is directly programmed.
3/3:	use CLOCK_TICK_RATE where 1193180 was used in timing calculations.

Tested on Alpha, compile & boot-tested on i386 (unrelated LVM problems here)

Arch maintainers please have a look whether I got the constants right or
if your architecture has a PIC at all.

Comments welcome.

Bye,
Thorsten


-- 
| Thorsten Kranzkowski        Internet: dl8bcu@dl8bcu.de                      |
| Mobile: ++49 170 1876134       Snail: Kiebitzstr. 14, 49324 Melle, Germany  |
| Ampr: dl8bcu@db0lj.#rpl.deu.eu, dl8bcu@marvin.dl8bcu.ampr.org [44.130.8.19] |

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2004-04-16  9:25 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-12  7:55 [PATCH][RFC] sort out CLOCK_TICK_RATE usage [0/3] Thorsten Kranzkowski
2004-04-12  7:57 ` [PATCH][RFC] sort out CLOCK_TICK_RATE usage [1/3] Thorsten Kranzkowski
2004-04-12  7:57   ` [PATCH][RFC] sort out CLOCK_TICK_RATE usage [2/3] Thorsten Kranzkowski
2004-04-12  7:58     ` [PATCH][RFC] sort out CLOCK_TICK_RATE usage [3/3] Thorsten Kranzkowski
2004-04-12 16:39   ` [PATCH][RFC] sort out CLOCK_TICK_RATE usage [1/3] David Mosberger
2004-04-12 20:08     ` Thorsten Kranzkowski
2004-04-12 20:32       ` David Mosberger
2004-04-12 21:17         ` Thorsten Kranzkowski
2004-04-13  4:04           ` Miles Bader
2004-04-13 17:00             ` Thorsten Kranzkowski
2004-04-14  1:45               ` Miles Bader
2004-04-12 16:47 ` [PATCH][RFC] sort out CLOCK_TICK_RATE usage [0/3] Zwane Mwaikambo
2004-04-12 20:11   ` Thorsten Kranzkowski
2004-04-12 20:50     ` Zwane Mwaikambo
2004-04-13 21:58 ` [PATCH] sort out CLOCK_TICK_RATE usage, 2nd try [0/3] Thorsten Kranzkowski
2004-04-13 21:59   ` [PATCH] sort out CLOCK_TICK_RATE usage, 2nd try [1/3] Thorsten Kranzkowski
2004-04-13 22:01     ` [PATCH] sort out CLOCK_TICK_RATE usage, 2nd try [2/3] Thorsten Kranzkowski
2004-04-13 22:02       ` [PATCH] sort out CLOCK_TICK_RATE usage, 2nd try [3/3] Thorsten Kranzkowski
2004-04-13 22:39         ` Randy.Dunlap
2004-04-14 14:12   ` [PATCH] sort out CLOCK_TICK_RATE usage, 2nd try [0/3] Matthew Wilcox
2004-04-16  9:05     ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®