Merge "puppet-manifests: validate cpu list before setting latencies"
This commit is contained in:
commit
7459ce68aa
@ -1,2 +1,2 @@
|
|||||||
SRC_DIR="src"
|
SRC_DIR="src"
|
||||||
TIS_PATCH_VER=73
|
TIS_PATCH_VER=74
|
||||||
|
@ -280,13 +280,16 @@ class platform::compute::pmqos (
|
|||||||
|
|
||||||
$script = "/usr/bin/set-cpu-wakeup-latency.sh"
|
$script = "/usr/bin/set-cpu-wakeup-latency.sh"
|
||||||
|
|
||||||
|
if $low_wakeup_cpus != '""' {
|
||||||
# Set low wakeup latency (shallow C-state) for vswitch CPUs using PM QoS interface
|
# Set low wakeup latency (shallow C-state) for vswitch CPUs using PM QoS interface
|
||||||
exec { "low-wakeup-latency":
|
exec { "low-wakeup-latency":
|
||||||
command => "${script} low ${low_wakeup_cpus}",
|
command => "${script} low ${low_wakeup_cpus}",
|
||||||
onlyif => "test -f ${script}",
|
onlyif => "test -f ${script}",
|
||||||
logoutput => true,
|
logoutput => true,
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if $hight_wakeup_cpus != '""' {
|
||||||
#Set high wakeup latency (deep C-state) for non-vswitch CPUs using PM QoS interface
|
#Set high wakeup latency (deep C-state) for non-vswitch CPUs using PM QoS interface
|
||||||
exec { "high-wakeup-latency":
|
exec { "high-wakeup-latency":
|
||||||
command => "${script} high ${hight_wakeup_cpus}",
|
command => "${script} high ${hight_wakeup_cpus}",
|
||||||
@ -294,6 +297,7 @@ class platform::compute::pmqos (
|
|||||||
logoutput => true,
|
logoutput => true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class platform::compute {
|
class platform::compute {
|
||||||
|
Loading…
Reference in New Issue
Block a user