mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
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:
parent
9ff982e4ab
commit
af269992e1
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user