g2: add cmhw class for tap-to-wake

Signed-off-by: houst0nn <houstonn@gmail.com>

Conflicts:
	init.hammerhead.rc

Change-Id: If6632a948a81112480d0b50903ff20ef167bc8d5
Finalize the TWRP-ify

Copy the twrp.fstab to the recovery ramdisk

Change-Id: I8c39f1dde79a1005079f1dd2c41163efde5bf353
hammerhead: Use interactive governor in recovery

Replace perfomance by interactive cpu governor which allows for frequency
scaling. Presently we are only using one compression thread, as this may
change in the future, use it for all available cpus.

Change-Id: I8008144d8ef74b30af9a270fbb1d4b1f0353fc7e
hh: Collapse primary audio outputs

 * These are exactly the same. Just OR the flags together instead of
   confusing the HAL.
 * This appears to fix the occasional crackle on low-latency streams
   on other devices, so adding it here.

Change-Id: Id27093a09e6d0e296714221eae9f59f6d431f758

Conflicts:
	audio_policy.conf
hh: Better scaling values

 * Default slack is too long and boost is too high, these values
   collide. Fix them.
 * Set a better timer_rate to reduce jitter

Change-Id: Id99c1642ca38d184e75d09bd3afc71951a8801c0

Conflicts:
	init.hammerhead.rc
hammerhead: prepare for new thermal engine

add 3rd party kernel compatibility for kernels without msm thermal engine

PS:
- add more specific syspath

Change-Id: I48f7a50ab519c0a35c5624c0b7e294767558732a
hammerhead: remove maxcpus which limits smp activation

we handle this all in kernel.

Change-Id: Iff6beebf06971cae17c7a3357f96acd647618c1b
hammerhead: configure  interactive sync feature and some ondemand
love

ps2: load based sync sucked
ps3: scaling values got merged
ps4: better values

Change-Id: Iee762a5642d365e83b9e59b60059c0280937d850
Signed-off-by: Dan Trifan <jimsth@gmail.com>

Conflicts:
	init.hammerhead.rc
HH: add workaround flag for broken video recording

compiling thumb as -Os breaks video recording on flo and hh

Change-Id: I2522872f5b6c79eca6a8077ed6b9c1476f7bf2d3
Merge remote-tracking branch 'th/kitkat' into kitkat