Skip to content

Commit

Permalink
cpufreq_governor: KVM does not support cpufreq scaling
Browse files Browse the repository at this point in the history
Reported-by: Li Zexi <[email protected]>
Signed-off-by: Fengguang Wu <[email protected]>
  • Loading branch information
Fengguang Wu committed May 25, 2015
1 parent dad2dd0 commit 1bddb39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup/cpufreq_governor
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
scaling_governor=$1
[ -n "$scaling_governor" ] || exit 0

[ "$(virt-what)" = 'kvm' ] && exit 0

for file in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
do
note "echo $scaling_governor > $file"
Expand Down

0 comments on commit 1bddb39

Please sign in to comment.