瀏覽代碼

Don't set governor on VMs

Change-Id: Ifa26361845a6841eff1ab49e6d6542946898c426
pull/102/head
Filip Pytloun 7 年之前
父節點
當前提交
caec9b5131
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. +5
    -0
      linux/system/cpu.sls

+ 5
- 0
linux/system/cpu.sls 查看文件

@@ -17,6 +17,9 @@ ondemand_service_disable:
- name: ondemand
- enable: false

{%- if grains.get('virtual', None) in ['physical', None] %}
{#- Governor cannot be set in VMs, etc. #}

/etc/sysfs.d/governor.conf:
file.managed:
- source: salt://linux/files/governor.conf.jinja
@@ -38,3 +41,5 @@ governor_write_sysfs_cpu_core_{{ cpu_core }}:
{%- endfor %}

{%- endif %}

{%- endif %}

Loading…
取消
儲存