msm: smd_pkt: add enforcement that array lengths match number of ports

Additional checks are added to enforce that ports are equal in number
to the size of their representative arrays, to provide sanity checks when
ports are added or removed.

Signed-off-by: Brent Hronik <bhronik@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
msm: smd_pkt: add additional smdcntl devices

Additional smdcntl devices are added to support Multi RMNET feature.

Signed-off-by: Brent Hronik <bhronik@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
msm: smd_pkt: Remove hexdump of userspace read/write buffers

Dumping userspace read/write buffers without first copying the data may
lead to a kernel panic if the buffer is unmapped after the buffer has
been validated but before the VFS call returns.

Remove the debug code to print the data using userspace buffers.

Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
sched: Fix inaccurate accounting for real-time task

It is possible that rq->clock_task was not updated in put_prev_task()
in which case we can potentially overcharge a real-time task for time
it did not run. This is because clock_task could be stale and not
represent the exact time real-time task started running.

Fix this by forcing update of rq->clock_task when real-time task
starts running.

Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
net: wireless: bcmdhd: Disable FW roaming during suspend

* Also enable debug.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Revert "iopoll: Use ktime_get() instead of jiffies for timeout calculations"

This reverts commit 65ca3ec3b780c4815a666ce315b07dc8d086befd.
rtc: Bring to sane state

* CAF sync up for rtc breaks alarm suspend in some
  cases. Revert the suspects.

Revert "rtc: alarm: set power_on_alarm again when calling alarm_resume"

This reverts commit 017c15cb86628289156e6467ac53f07abe6ee696.

Revert "kernel: alarm: Do not call rtc_alarm_irq_enable in IRQ Disabled cont

This reverts commit 1ea6420fb4fcf68ce14048e134b807e3b184390c.

Revert "rtc: qpnp-rtc: Sets RTC time correctly"

This reverts commit 785b6907b7daf8af0bf052f801a0c1fd8eff24f0.

Revert "kernel: alarm: setup the RTC immediately for poweroff alarm"

This reverts commit 1d87e24760fac9b26a19c17bbf2ead2de30db61b.

Revert "rtc: alarm: Proper handling of spinlock"

This reverts commit 1ab10087383ea0ceec2176cd6262779caac1db5d.

Revert "rtc: alarm: update power_on alarm setting logic"

This reverts commit dd61a38271cf7542ac20d93efcceaa84bd0952e1.

Revert "rtc: qpnp-rtc: Set alarm control register properly"

This reverts commit fc6162126e8fe829e6aaf61368bdc6ba3b4cb6ab.

Revert "rtc:alarm: remove alarm_shutdown hook in alarm driver"

This reverts commit 0481b367b05ed02059cb9b1e6a21e6d9c60039d2.

Revert "alarm : Fix the race conditions in alarm-dev.c"

This reverts commit 5d95d04712be53aa669336724ad628c1d9089185.

Revert "qpnp-rtc: clear alarm register when rtc irq is disabled"

This reverts commit c736fbd94a3cfaa927f545dfcafde370d3d79dd0.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
uksm: Disable by default

* This feature will drain battery faster so we'll make it so users have to enable.  Besides we already have tons of ram so I don't usually need to worry about uksm.

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>
use linaro 4.9.3 instead, seems to perform better in my tests with slightly better idle drain