aboutsummaryrefslogtreecommitdiff
path: root/playbooks/roles/tcwg-tk1-cpucore
diff options
context:
space:
mode:
authorLuca Di Stefano <luca.distefano@linaro.org>2017-04-27 12:20:38 +0100
committerLuca Di Stefano <luca.distefano@linaro.org>2017-04-27 12:20:44 +0100
commit7299b6139dede49ebad6860b81de3239ea0c775e (patch)
treea420f101e7c0fb2f8603644303f0463493f00ff7 /playbooks/roles/tcwg-tk1-cpucore
parentca5f0a781120f68c8e95bf361cd6f72fed34e203 (diff)
Role to enable all TK1 cores
Change-Id: Ibc1d72b098ea2ac662b42dcd3edcc51c459f518e
Diffstat (limited to 'playbooks/roles/tcwg-tk1-cpucore')
-rw-r--r--playbooks/roles/tcwg-tk1-cpucore/defaults/git.hold0
-rw-r--r--playbooks/roles/tcwg-tk1-cpucore/files/rc.local21
-rw-r--r--playbooks/roles/tcwg-tk1-cpucore/handlers/main.yml0
-rw-r--r--playbooks/roles/tcwg-tk1-cpucore/meta/git.hold0
-rw-r--r--playbooks/roles/tcwg-tk1-cpucore/tasks/main.yml9
-rw-r--r--playbooks/roles/tcwg-tk1-cpucore/templates/git.hold0
-rw-r--r--playbooks/roles/tcwg-tk1-cpucore/vars/main.yml0
7 files changed, 30 insertions, 0 deletions
diff --git a/playbooks/roles/tcwg-tk1-cpucore/defaults/git.hold b/playbooks/roles/tcwg-tk1-cpucore/defaults/git.hold
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/playbooks/roles/tcwg-tk1-cpucore/defaults/git.hold
diff --git a/playbooks/roles/tcwg-tk1-cpucore/files/rc.local b/playbooks/roles/tcwg-tk1-cpucore/files/rc.local
new file mode 100644
index 0000000..68497d5
--- /dev/null
+++ b/playbooks/roles/tcwg-tk1-cpucore/files/rc.local
@@ -0,0 +1,21 @@
+#!/bin/sh -e
+#
+# rc.local
+#
+# This script is executed at the end of each multiuser runlevel.
+# Make sure that the script will "exit 0" on success or any other
+# value on error.
+#
+# In order to enable or disable this script just change the execution
+# bits.
+#
+# By default this script does nothing.
+
+echo 0 > /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/enable
+echo 1 > /sys/devices/system/cpu/cpu0/online
+echo 1 > /sys/devices/system/cpu/cpu1/online
+echo 1 > /sys/devices/system/cpu/cpu2/online
+echo 1 > /sys/devices/system/cpu/cpu3/online
+
+exit 0
+
diff --git a/playbooks/roles/tcwg-tk1-cpucore/handlers/main.yml b/playbooks/roles/tcwg-tk1-cpucore/handlers/main.yml
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/playbooks/roles/tcwg-tk1-cpucore/handlers/main.yml
diff --git a/playbooks/roles/tcwg-tk1-cpucore/meta/git.hold b/playbooks/roles/tcwg-tk1-cpucore/meta/git.hold
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/playbooks/roles/tcwg-tk1-cpucore/meta/git.hold
diff --git a/playbooks/roles/tcwg-tk1-cpucore/tasks/main.yml b/playbooks/roles/tcwg-tk1-cpucore/tasks/main.yml
new file mode 100644
index 0000000..b8a5ea3
--- /dev/null
+++ b/playbooks/roles/tcwg-tk1-cpucore/tasks/main.yml
@@ -0,0 +1,9 @@
+---
+
+ - name: Copy modified rc.local
+ copy: src=rc.local dest=/etc/rc.local owner=root group=root mode=0644
+ when: ansible_cmdline.tegraid == "40.1.1.0.0"
+
+ - name: Disable OnDemand service
+ command: update-rc.d ondemand remove
+ when: ansible_cmdline.tegraid == "40.1.1.0.0"
diff --git a/playbooks/roles/tcwg-tk1-cpucore/templates/git.hold b/playbooks/roles/tcwg-tk1-cpucore/templates/git.hold
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/playbooks/roles/tcwg-tk1-cpucore/templates/git.hold
diff --git a/playbooks/roles/tcwg-tk1-cpucore/vars/main.yml b/playbooks/roles/tcwg-tk1-cpucore/vars/main.yml
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/playbooks/roles/tcwg-tk1-cpucore/vars/main.yml