summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/histogram/benchmark/enable_cpu_scaling.sh
blob: d0a463eb02f3a86351bcc9e1c63341a13094c570 (plain)
1
2
3
4
5
6
7
#!/bin/bash

# Copyright Hans Dembinski 2019
# Distributed under the Boost Software License, Version 1.0.
# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt

for cpu in /sys/devices/system/cpu/cpu? ; do echo powersave > $cpu/cpufreq/scaling_governor; done