x86_enegry_perf_policy: init at kernel versions

This commit is contained in:
Nikolay Amiantov 2015-11-09 17:12:18 +03:00
parent 2a0f9d40ff
commit 265718c985
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,25 @@
{ stdenv, kernel }:
stdenv.mkDerivation {
name = "x86_energy_perf_policy-${kernel.version}";
src = kernel.src;
postPatch = ''
cd tools/power/x86/x86_energy_perf_policy
sed -i 's,/usr,,g' Makefile
'';
preInstall = ''
mkdir -p $out/bin $out/share/man/man8
'';
makeFlags = [ "DESTDIR=$(out)" ];
meta = with stdenv.lib; {
description = "Set the energy versus performance policy preference bias on recent X86 processors";
homepage = https://www.kernel.org.org/;
license = licenses.gpl2;
platforms = [ "i686-linux" "x86_64-linux" ]; # x86-specific
};
}

View File

@ -10056,6 +10056,8 @@ let
virtualboxGuestAdditions = callPackage ../applications/virtualization/virtualbox/guest-additions { };
x86_energy_perf_policy = callPackage ../os-specific/linux/x86_energy_perf_policy { };
zfs = callPackage ../os-specific/linux/zfs {
configFile = "kernel";
inherit kernel spl;