PM / sleep: unregister wakeup source when disabling device wakeup

When enabling a device' wakeup capability, a wakeup source
is created for the device automatically. But the wakeup source
is not unregistered when disabling the device' wakeup capability.

This results in zombie wakeup sources, after devices/drivers are unregistered.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: flar2 <asegaert@gmail.com>
soc: qcom: smd: Register SMD & SMSM IRQs with IRQF_NO_SUSPEND flag

During system suspend/resume path IRQs are temporarily disabled unless
the IRQF_NO_SUSPEND flag is specified. If a wakeup-enabled interrupt
comes in during this timeframe, it will be masked until the suspend
process is complete leading to delayed processing.

Register the SMD and SMSM wakeup enable IRQs with IRQF_NO_SUSPEND flags
to avoid delaying the interrupt during system suspend/resume path.

CRs-Fixed: 724932
Change-Id: Ib93c911f4a4e70638ebf23bc22ee7f5a685dca70
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
Signed-off-by: flar2 <asegaert@gmail.com>
qcom: rpm-smd: Mask the interrupt before sending the sleep set.

Sending a sleep set would cause an SMD interrupt to fire. If the
interrupt was previously affine to a different CPU, it could cause a
premature wakeup of that CPU. Prevent this by masking the interrupt
before sending the sleep set.

Change-Id: I45734c6fa52b7f69c0d68c5b3cd221185a516248
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
Signed-off-by: flar2 <asegaert@gmail.com>
PM: devfreq: Fix simple_ondemand crashing on startup

simple_ondemands private data must be set to NULL, otherwise we would
run into a NULL pointer in kgsl_devfreq_get_dev_status().

Change-Id: I6cc6a8b11e3b58b8c3e3c26d43ee36949cf62351

Signed-off-by: flar2 <asegaert@gmail.com>
msm: kgsl: Fix nice level for higher priority GPU start thread

Before, we were actually setting the lowest possible priority.

Change-Id: I3a52de949eee0faea8061dd91ed303fa8231f0d4

Signed-off-by: flar2 <asegaert@gmail.com>
sched: remove unused trace
elementalx defconfig