Merge "puppet-manifests: validate cpu list before setting latencies"

This commit is contained in:
Zuul 2018-11-30 00:20:10 +00:00 committed by Gerrit Code Review
commit 7459ce68aa
2 changed files with 15 additions and 11 deletions

View File

@ -1,2 +1,2 @@
SRC_DIR="src" SRC_DIR="src"
TIS_PATCH_VER=73 TIS_PATCH_VER=74

View File

@ -280,18 +280,22 @@ class platform::compute::pmqos (
$script = "/usr/bin/set-cpu-wakeup-latency.sh" $script = "/usr/bin/set-cpu-wakeup-latency.sh"
# Set low wakeup latency (shallow C-state) for vswitch CPUs using PM QoS interface if $low_wakeup_cpus != '""' {
exec { "low-wakeup-latency": # Set low wakeup latency (shallow C-state) for vswitch CPUs using PM QoS interface
command => "${script} low ${low_wakeup_cpus}", exec { "low-wakeup-latency":
onlyif => "test -f ${script}", command => "${script} low ${low_wakeup_cpus}",
logoutput => true, onlyif => "test -f ${script}",
logoutput => true,
}
} }
#Set high wakeup latency (deep C-state) for non-vswitch CPUs using PM QoS interface if $hight_wakeup_cpus != '""' {
exec { "high-wakeup-latency": #Set high wakeup latency (deep C-state) for non-vswitch CPUs using PM QoS interface
command => "${script} high ${hight_wakeup_cpus}", exec { "high-wakeup-latency":
onlyif => "test -f ${script}", command => "${script} high ${hight_wakeup_cpus}",
logoutput => true, onlyif => "test -f ${script}",
logoutput => true,
}
} }
} }
} }