Introduce CONFIG_HZ patches 250|300|1000 Hz for lower latency. Default 300Hz enabled

This commit is contained in:
soundcheck 2014-02-17 08:53:07 +01:00
parent c14715fc1a
commit c8760f9468
4 changed files with 41 additions and 0 deletions

View file

@ -88,6 +88,14 @@ sed -e 's/usb_detect_type = 1/usb_detect_type = 0/g' $DEST/cubie_configs
sed -e 's/screen0_output_type.*/screen0_output_type = 3/g' $DEST/cubie_configs/sysconfig/linux/ct.fex > $DEST/cubie_configs/sysconfig/linux/ct-hdmi.fex
sed -e 's/screen0_output_type.*/screen0_output_type = 4/g' $DEST/cubie_configs/sysconfig/linux/ct.fex > $DEST/cubie_configs/sysconfig/linux/ct-vga.fex
###PATCH kernel CONFIG_HZ, Arm dfault is hardcoded 100hz (10ms latency!). For mulitimedia and desktop a higher frequency is recomended.
#test -f $SRC/patch/250HZ.patch && patch -f $DEST/linux-sunxi/arch/arm/Kconfig < $SRC/patch/250HZ.patch
test -f $SRC/patch/300HZ.patch && patch -f $DEST/linux-sunxi/arch/arm/Kconfig < $SRC/patch/300HZ.patch
#test -f $SRC/patch/1000HZ.patch && patch -f $DEST/linux-sunxi/arch/arm/Kconfig < $SRC/patch/1000HZ.patch
# Copying Kernel config
cp $SRC/config/kernel.config $DEST/linux-sunxi/

11
patch/1000HZ.patch Normal file
View file

@ -0,0 +1,11 @@
--- ./arch/arm/Kconfig 2014-02-14 11:28:34.504514916 +0100
+++ ./arch/arm/Kconfig.a 2014-02-14 11:28:16.634516659 +0100
@@ -1698,7 +1698,7 @@
default OMAP_32K_TIMER_HZ if ARCH_OMAP && OMAP_32K_TIMER
default AT91_TIMER_HZ if ARCH_AT91
default SHMOBILE_TIMER_HZ if ARCH_SHMOBILE
- default 100
+ default 1000
config THUMB2_KERNEL
bool "Compile the kernel in Thumb-2 mode (EXPERIMENTAL)"

11
patch/250HZ.patch Normal file
View file

@ -0,0 +1,11 @@
--- ./arch/arm/Kconfig 2014-02-14 11:28:34.504514916 +0100
+++ ./arch/arm/Kconfig.a 2014-02-14 11:28:16.634516659 +0100
@@ -1698,7 +1698,7 @@
default OMAP_32K_TIMER_HZ if ARCH_OMAP && OMAP_32K_TIMER
default AT91_TIMER_HZ if ARCH_AT91
default SHMOBILE_TIMER_HZ if ARCH_SHMOBILE
- default 100
+ default 250
config THUMB2_KERNEL
bool "Compile the kernel in Thumb-2 mode (EXPERIMENTAL)"

11
patch/300HZ.patch Normal file
View file

@ -0,0 +1,11 @@
--- ./arch/arm/Kconfig 2014-02-14 11:28:34.504514916 +0100
+++ ./arch/arm/Kconfig.a 2014-02-14 11:28:16.634516659 +0100
@@ -1698,7 +1698,7 @@
default OMAP_32K_TIMER_HZ if ARCH_OMAP && OMAP_32K_TIMER
default AT91_TIMER_HZ if ARCH_AT91
default SHMOBILE_TIMER_HZ if ARCH_SHMOBILE
- default 100
+ default 300
config THUMB2_KERNEL
bool "Compile the kernel in Thumb-2 mode (EXPERIMENTAL)"