SPECS (Titanium): kernel-desktop.spec - add laptop mode with 100 Hz

shadzik shadzik at pld-linux.org
Tue Mar 17 12:00:15 CET 2009


Author: shadzik                      Date: Tue Mar 17 11:00:15 2009 GMT
Module: SPECS                         Tag: Titanium
---- Log message:
- add laptop mode with 100 Hz

---- Files affected:
SPECS:
   kernel-desktop.spec (1.204.2.2 -> 1.204.2.3) 

---- Diffs:

================================================================
Index: SPECS/kernel-desktop.spec
diff -u SPECS/kernel-desktop.spec:1.204.2.2 SPECS/kernel-desktop.spec:1.204.2.3
--- SPECS/kernel-desktop.spec:1.204.2.2	Tue Mar 17 11:42:44 2009
+++ SPECS/kernel-desktop.spec	Tue Mar 17 12:00:09 2009
@@ -5,6 +5,7 @@
 %bcond_without	pcmcia		# don't build pcmcia
 %bcond_with	verbose		# verbose build (V=1)
 %bcond_with	pae		# build PAE (HIGHMEM64G) support on uniprocessor
+%bcond_with	laptop		# build for laptops - 100Hz
 
 %{?debug:%define with_verbose 1}
 
@@ -19,7 +20,11 @@
 
 %define		_enable_debug_packages			0
 
+%if %{with laptop}
+%define		alt_kernel	laptop%{?with_pae:-pae}
+%else
 %define		alt_kernel	desktop%{?with_pae:-pae}
+%endif
 
 # kernel release (used in filesystem and eventually in uname -r)
 # modules will be looked from /lib/modules/%{kernel_release}
@@ -445,6 +450,12 @@
 %{?debug:sed -i "s:# CONFIG_DEBUG_PREEMPT is not set:CONFIG_DEBUG_PREEMPT=y:" %{defconfig}}
 %{?debug:sed -i "s:# CONFIG_RT_DEADLOCK_DETECT is not set:CONFIG_RT_DEADLOCK_DETECT=y:" %{defconfig}}
 
+%if %{with laptop}
+%__sed -i "s:# CONFIG_HZ_100 is not set:CONFIG_HZ_100=y:" %{defconfig}
+%__sed -i "s:CONFIG_HZ_1000=y:# CONFIG_HZ_1000 is not set:" %{defconfig}
+%__sed -i "s:CONFIG_HZ=1000:CONFIG_HZ=100:" %{defconfig}
+%endif
+
 }
 
 BuildKernel() {
@@ -912,6 +923,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.204.2.3  2009/03/17 11:00:09  shadzik
+- add laptop mode with 100 Hz
+
 Revision 1.204.2.2  2009/03/17 10:42:44  shadzik
 - linux 2.6.27.20
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/kernel-desktop.spec?r1=1.204.2.2&r2=1.204.2.3&f=u



More information about the pld-cvs-commit mailing list