diff options
author | Tim Gardner <tim.gardner@canonical.com> | 2011-08-09 11:00:18 -0600 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2011-10-17 09:53:10 -0600 |
commit | 2b1944bee9cc6f53cb4a8ba570491988bca2a048 (patch) | |
tree | dbfac178c67d488fed981bad700c7eaa1cf0f131 /debian/tools | |
parent | d6e2d55dec9ca31c7478a63e9753981b5724483f (diff) |
UBUNTU: [Config] Package x86_energy_perf_policy and turbostat
BugLink: http://bugs.launchpad.net/bugs/797556
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Diffstat (limited to 'debian/tools')
-rw-r--r-- | debian/tools/turbostat | 16 | ||||
-rw-r--r-- | debian/tools/x86_energy_perf_policy | 16 |
2 files changed, 32 insertions, 0 deletions
diff --git a/debian/tools/turbostat b/debian/tools/turbostat new file mode 100644 index 00000000000..ac4af7c9acc --- /dev/null +++ b/debian/tools/turbostat @@ -0,0 +1,16 @@ +#!/bin/bash +full_version=`uname -r` + +# Removing flavour from version i.e. generic or server. +flavour_abi=${full_version#*-} +flavour=${flavour_abi#*-} +version=${full_version%-$flavour} +turbostat="turbostat_$version" + +if ! which "$turbostat" > /dev/null; then + echo "$turbostat not found" >&2 + echo "You may need to install linux-tools-$version" >&2 + exit 2 +fi + +exec "$turbostat" "$@" diff --git a/debian/tools/x86_energy_perf_policy b/debian/tools/x86_energy_perf_policy new file mode 100644 index 00000000000..7b97a9e091b --- /dev/null +++ b/debian/tools/x86_energy_perf_policy @@ -0,0 +1,16 @@ +#!/bin/bash +full_version=`uname -r` + +# Removing flavour from version i.e. generic or server. +flavour_abi=${full_version#*-} +flavour=${flavour_abi#*-} +version=${full_version%-$flavour} +x86_energy_perf_policy="x86_energy_perf_policy_$version" + +if ! which "$x86_energy_perf_policy" > /dev/null; then + echo "$x86_energy_perf_policy not found" >&2 + echo "You may need to install linux-tools-$version" >&2 + exit 2 +fi + +exec "$x86_energy_perf_policy" "$@" |