Skip to content

Commit 40fcfc8

Browse files
Alan-CoxLinus Torvalds
authored andcommitted
[PATCH] HZ: 300Hz support
Fix two things. Firstly the unit is "Hz" not "HZ". Secondly it is useful to have 300Hz support when doing multimedia work. 250 is fine for us in Europe but the US frame rate is 30fps (29.99 blah for pedants). 300 gives us a tick divisible by both 25 and 30, and for interlace work 50 and 60. It's also giving similar performance to 250Hz. I'd argue we should remove 250 and add 300, but that might be excess disruption for now. Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent d5abe66 commit 40fcfc8

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

‎kernel/Kconfig.hz‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ choice
77
default HZ_250
88
help
99
Allows the configuration of the timer frequency. It is customary
10-
to have the timer interrupt run at 1000 HZ but 100 HZ may be more
10+
to have the timer interrupt run at 1000 Hz but 100 Hz may be more
1111
beneficial for servers and NUMA systems that do not need to have
1212
a fast response for user interaction and that may experience bus
1313
contention and cacheline bounces as a result of timer interrupts.
@@ -19,21 +19,30 @@ choice
1919
config HZ_100
2020
bool "100 HZ"
2121
help
22-
100 HZ is a typical choice for servers, SMP and NUMA systems
22+
100 Hz is a typical choice for servers, SMP and NUMA systems
2323
with lots of processors that may show reduced performance if
2424
too many timer interrupts are occurring.
2525

2626
config HZ_250
2727
bool "250 HZ"
2828
help
29-
250 HZ is a good compromise choice allowing server performance
29+
250 Hz is a good compromise choice allowing server performance
3030
while also showing good interactive responsiveness even
31-
on SMP and NUMA systems.
31+
on SMP and NUMA systems. If you are going to be using NTSC video
32+
or multimedia, selected 300Hz instead.
33+
34+
config HZ_300
35+
bool "300 HZ"
36+
help
37+
300 Hz is a good compromise choice allowing server performance
38+
while also showing good interactive responsiveness even
39+
on SMP and NUMA systems and exactly dividing by both PAL and
40+
NTSC frame rates for video and multimedia work.
3241

3342
config HZ_1000
3443
bool "1000 HZ"
3544
help
36-
1000 HZ is the preferred choice for desktop systems and other
45+
1000 Hz is the preferred choice for desktop systems and other
3746
systems requiring fast interactive responses to events.
3847

3948
endchoice
@@ -42,5 +51,6 @@ config HZ
4251
int
4352
default 100 if HZ_100
4453
default 250 if HZ_250
54+
default 300 if HZ_300
4555
default 1000 if HZ_1000
4656

0 commit comments

Comments
 (0)