Also set the platform profile for AMD.

The platform profile sets power settings for the EC/system but not the CPU.
This commit is contained in:
Tom Alexander
2023-12-19 08:51:25 -05:00
parent c87ac216a9
commit 9ac2605912
4 changed files with 24 additions and 3 deletions

View File

@@ -4,18 +4,29 @@
- powertop
state: present
- name: Favor energy efficiency for Speed Shift
- name: Favor energy efficiency for hardware p-states
when: hwpstate is defined and hwpstate and cores is defined
template:
src: "templates/{{ item.src }}.j2"
dest: "{{ item.dest }}"
mode: 0755
mode: 0644
owner: root
group: wheel
loop:
- src: energy_performance_preference.conf
dest: /etc/tmpfiles.d/energy_performance_preference.conf
- name: Install tmpfiles.d configuration
when: hwpstate is defined and hwpstate and cores is defined
copy:
src: "files/{{ item }}_tmpfiles.conf"
dest: "/etc/tmpfiles.d/{{ item }}.conf"
mode: 0644
owner: root
group: wheel
loop:
- platform_profile
- name: Install scripts
when: hwpstate is defined and hwpstate
copy:

View File

@@ -19,7 +19,7 @@
template:
src: "templates/{{ item.src }}.j2"
dest: "{{ item.dest }}"
mode: 0755
mode: 0644
owner: root
group: wheel
loop: