msm: thermal: Fix kernel thermal sysfs nodes permission

Fix the permission of the sysfs nodes exposed by the kernel
thermal monitor (KTM).The KTM sysfs nodes had wrong permissions
defined, which restricted access to thermal-engine/thermald with
SELinux policy. The sysfsnodes permissions are fixed in order to
allow access to thermal userspace processes with SELinux policy.

Bug: 12450712

Change-Id: I6f088f0bca889acbf0fd6a1d1dac09edc89c366c
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Signed-off-by: Mekala Natarajan <mekalan@codeaurora.org>
msm: mdss: Use interruptible wait to not affect load average

Change-Id: I7ad6644ca49e8f4d30ede9076dd1854a19614570
msm: kgsl: Wake up GPU only for touch events

Register the KGSL input event handler only for
touch input events to make sure input event handler
is called only for touch input events.

Change-Id: I68938fbbf870bd3bce83cb057b504674753d6de8
Signed-off-by: Ananta Kishore K <akollipa@codeaurora.org>
soc: qcom: rq_stats: Pass correct cpu id to update_average_load function

Pass correct cpu number to update_average_load function
from cpufreq_transition_handler function. Also avoid div by zero
condition in update_average_load function.

CRs-Fixed: 708310
Change-Id: I4ec3e54b92c760ac5fa910542524fdfe919f55e9
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>