Update feature set for Zen kernel; also tune HZ settings for BFS scheduler (didn't boot for me last time)

svn path=/nixpkgs/trunk/; revision=17151
This commit is contained in:
Michael Raskin 2009-09-15 09:16:29 +00:00
parent 9ff982e4ab
commit af269992e1

View File

@ -11,6 +11,7 @@ in
features = {
iwlwifi = true;
zen = true;
fbConDecor = true;
};
extraMeta = {
@ -33,6 +34,10 @@ in
sed -re 's/^# ('"$1"') is not set/\1=y/' -i .config
sed -re "1i$1=y" -i .config
}
setOptionVal () {
sed -re 's/^('"$1"')=.*/\1='"$2"'/' -i .config
sed -re "1i$1=$2" -i .config
}
make allmodconfig
@ -66,6 +71,10 @@ in
(if a.lib.attrByPath ["ckSched"] false a then ''
killOption CONFIG_CPU_CFS
setOptionYes CONFIG_CPU_BFS
killOption CONFIG_NO_HZ
killOption CONFIG_HZ_1000
setOptionYes CONFIG_HZ_250
setOptionVal CONFIG_HZ 250
''else "") +
''
cp .config ${config}