Add a version of Zen kernel with Con Kolivas' BFS scheduler

svn path=/nixpkgs/trunk/; revision=17142
This commit is contained in:
Michael Raskin 2009-09-14 21:56:31 +00:00
parent b98b622ef0
commit a593492d4f
2 changed files with 10 additions and 1 deletions

View File

@ -62,7 +62,12 @@ in
killOption CONFIG_ACPI_CUSTOM_DSDT_INITRD
killOption CONFIG_DEVTMPFS
killOption CONFIG_DEVTMPFS_MOUNT
'' +
(if a.lib.attrByPath ["ckSched"] false a then ''
killOption CONFIG_CPU_CFS
setOptionYes CONFIG_CPU_BFS
''else "") +
''
cp .config ${config}
'';
})

View File

@ -5331,6 +5331,10 @@ let
lib builderDefs;
};
kernel_2_6_31_zen0_bfs = kernel_2_6_31_zen0.override {
ckSched = true;
};
/* Kernel modules are inherently tied to a specific kernel. So
rather than provide specific instances of those packages for a
specific kernel, we have a function that builds those packages