vexpress: init: Setup cpufreq for TC2

As TC2 is the only vexpress CoreTile so far which can support cpufreq
it's safe to assume the sysfs entries for this don't exists on anything
other than TC2, so poking them is a harmless error on these other
CoreTiles.

We need to revisit this when other vexpress hardware supports cpufreq
but for now, lets just get TC2 working nicely.

Change-Id: I4c8bea0af4d76fd236b482c3fb1422e498fcad56
Signed-off-by: Jon Medhurst <tixy@linaro.org>
diff --git a/init.arm-versatileexpress.rc b/init.arm-versatileexpress.rc
index 9f6c186..6174423 100644
--- a/init.arm-versatileexpress.rc
+++ b/init.arm-versatileexpress.rc
@@ -11,6 +11,11 @@
     mkdir /data/misc/dhcp 0770 dhcp dhcp
     chmod 0770 /data/misc/dhcp
 
+    # For TC2, set A15s to performance and A7s to ondemand
+    # (Other CoreTiles don't have cpu_freq so this doesn't affect them.)
+    write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance
+    write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor ondemand
+
     # change permissions for alsa nodes
     chmod 0777 /dev/snd/pcmC0D0c
     chmod 0777 /dev/snd/pcmC0D0p