summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishal Mahaveer2016-04-26 01:13:27 -0500
committerVishal Mahaveer2016-04-27 03:44:09 -0500
commitde5b94338581fd62b66cc48171d0c6cf993cb263 (patch)
tree0c0df4ad93deac1e8a795f0ea8ce5ca4c460fa8c
parent6780ba912b0d64592da34a54da21398f3817d200 (diff)
downloaddevice-ti-jacinto6evm-de5b94338581fd62b66cc48171d0c6cf993cb263.tar.gz
device-ti-jacinto6evm-de5b94338581fd62b66cc48171d0c6cf993cb263.tar.xz
device-ti-jacinto6evm-de5b94338581fd62b66cc48171d0c6cf993cb263.zip
jacinto6evm: configure cpusets for J6 and J6 Eco
By deault only one core (0) is assigned for all categories of cpuset. But we want both cores (0-1) to be assigned in case of J6. Since we use same set of binaries for J6 and J6 Eco, configure the cpusets dynamically using a script. For J6 - the entries for foreground should be 0-1 For J6 Eco - the entries for foreground should be 0 Change-Id: I1bf8aa5ca4e5b7d73f6fcfdf841f09fa1b4c62df Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
-rw-r--r--BoardConfig.mk2
-rw-r--r--device.mk4
-rwxr-xr-xinit.jacinto6evmboard.cpuset.sh5
-rw-r--r--init.jacinto6evmboard.rc3
4 files changed, 14 insertions, 0 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 0bd06fe..976f653 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -31,6 +31,8 @@ TARGET_ARCH := arm
31TARGET_ARCH_VARIANT := armv7-a-neon 31TARGET_ARCH_VARIANT := armv7-a-neon
32TARGET_CPU_VARIANT := cortex-a15 32TARGET_CPU_VARIANT := cortex-a15
33 33
34ENABLE_CPUSETS := true
35
34BOARD_HAVE_BLUETOOTH := true 36BOARD_HAVE_BLUETOOTH := true
35BOARD_HAVE_BLUETOOTH_TI := true 37BOARD_HAVE_BLUETOOTH_TI := true
36BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/ti/jacinto6evm/bluetooth 38BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/ti/jacinto6evm/bluetooth
diff --git a/device.mk b/device.mk
index e0b1264..a93f0c4 100644
--- a/device.mk
+++ b/device.mk
@@ -51,6 +51,10 @@ PRODUCT_COPY_FILES += \
51 device/ti/jacinto6evm/audio/jamr3/jamr3_mixer_paths.xml:system/etc/jamr3_mixer_paths.xml \ 51 device/ti/jacinto6evm/audio/jamr3/jamr3_mixer_paths.xml:system/etc/jamr3_mixer_paths.xml \
52 device/ti/jacinto6evm/audio/audio_policy.conf:system/etc/audio_policy.conf 52 device/ti/jacinto6evm/audio/audio_policy.conf:system/etc/audio_policy.conf
53 53
54# cpuset configuration
55PRODUCT_COPY_FILES += \
56 device/ti/jacinto6evm/init.jacinto6evmboard.cpuset.sh:system/bin/init.jacinto6evmboard.cpuset.sh
57
54PRODUCT_PROPERTY_OVERRIDES := \ 58PRODUCT_PROPERTY_OVERRIDES := \
55 hwui.render_dirty_regions=false 59 hwui.render_dirty_regions=false
56 60
diff --git a/init.jacinto6evmboard.cpuset.sh b/init.jacinto6evmboard.cpuset.sh
new file mode 100755
index 0000000..06f4177
--- /dev/null
+++ b/init.jacinto6evmboard.cpuset.sh
@@ -0,0 +1,5 @@
1#!/system/bin/sh
2
3# Assign all CPUs for foreground (J6 and J6 Eco have different number of cores)
4cat /sys/devices/system/cpu/present > /dev/cpuset/foreground/cpus
5cat /sys/devices/system/cpu/present > /dev/cpuset/foreground/boost/cpus
diff --git a/init.jacinto6evmboard.rc b/init.jacinto6evmboard.rc
index 67619b5..add1bf2 100644
--- a/init.jacinto6evmboard.rc
+++ b/init.jacinto6evmboard.rc
@@ -34,6 +34,9 @@ on post-fs-data
34 34
35on boot 35on boot
36 36
37 # execute script to set cpuset configuration
38 exec - root root system -- /system/bin/init.jacinto6evmboard.cpuset.sh
39
37 # wi-fi 40 # wi-fi
38 mkdir /data/misc/wifi/sockets 0770 wifi wifi 41 mkdir /data/misc/wifi/sockets 0770 wifi wifi
39 mkdir /data/misc/dhcp 0770 dhcp dhcp 42 mkdir /data/misc/dhcp 0770 dhcp dhcp