/usr/bin/x86_energy_perf_policy is in linux-tools-common 3.2.0-23.36.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 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" "$@"
|