GPU: add optimization flags to GPU drivers

Signed-off-by: Lens-F <tnoah12@gmail.com>
Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: Joao Paulo <joaolrpaulo@gmail.com>
net/ipv4/tcp_output.c: conflicting types for 'tcp_write_xmit'

uses:
     static bool tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle,
instead of
     static int tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle,

refers to: https://bitbucket.org/AOSPA-hybrid/kernel_lge_msm8974/commits/3ead69fd1889fb7a214eb8685ecf89e9d71ff2a6

Signed-off-by: Andre Saddler <dresadd09691@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Joao Paulo <joaolrpaulo@gmail.com>
Add new helpers

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Joao Paulo <joaolrpaulo@gmail.com>
signals: eventpoll: do not use sigprocmask()

sigprocmask() should die. None of the current callers actually
need this strange interface.

Change fs/eventpoll.c to use set_current_blocked(). This also
means we should not worry about SIGKILL/SIGSTOP.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Eric Wong <normalperson@yhbt.net>
Cc: Jason Baron <jbaron@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Joao Paulo <joaolrpaulo@gmail.com>
Regulator: lower minimum voltage constraint for l22

Signed-off-by: Joao Paulo <joaolrpaulo@gmail.com>

Conflicts:
	arch/arm/boot/dts/msm8974-hammerhead/msm8974-hammerhead.dtsi
msm: krait-regulator: handle efuse differences

Scaling factor version is valid for
- 8974 based devices when the version bits read 1
- 8974pro based devices when the version bits read 1 or 2
- 8084 based devices when the version bits read 0
- 8092 based devices when the version bits read 0

Moreover the three bit scaling factor data for
- 8974 based devices starts at bit 16
- 8974pro based devices starts at bit 16
- 8084 based devices starts at bit 14
- 8092 based devices starts at bit 14

Update the code to handle these differences.

[neo: Only required parts]

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Joao Paulo <joaolrpaulo@gmail.com>
msm: krait-regulator: fix unnecessary calls to switch to LDO

When asked to set a LDO voltage the driver rounds it up to
the nearest step value. However, when checking if the requested voltage
is already set it doesn't account for the rounding up.

Fix this by rounding up the requested value, which avoids
unnecessary calls to set the LDO voltage and switch to LDO.

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Joao Paulo <joaolrpaulo@gmail.com>
prctl: adds PR_SET_TIMERSLACK_PID for setting timer slack of an arbitrary thread.

Second argument is similar to PR_SET_TIMERSLACK, if non-zero then the
slack is set to that value otherwise sets it to the default for the thread.

Takes PID of the thread as the third argument.

This allows power/performance management software to set timer slack for
other threads according to its policy for the thread (such as when the
thread is designated foreground vs. background activity)

Change-Id: I744d451ff4e60dae69f38f53948ff36c51c14a3f
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
Signed-off-by: Joao Paulo <joaolrpaulo@gmail.com>
nf: Remove compilation error caused by
e254d2c28c880da28626af6d53b7add5f7d6afee

Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
Signed-off-by: Joao Paulo <joaolrpaulo@gmail.com>
GCC 4.9.1: fix compile warnings

Signed-off-by: Joao Paulo <joaolrpaulo@gmail.com>
touch_synaptics: low power mode

Signed-off-by: Joao Paulo <joaolrpaulo@gmail.com>
Revert "Sweep2Wake: Bidirectional S2W for Nexus 5"

This reverts commit 48b3f0d85dd61ec17b9cbd3c7e70986ff92f4bcb.

Signed-off-by: Joao Paulo <joaolrpaulo@gmail.com>
Revert "sweep2wake: Add bidirectional Sweep2Sleep based on the idea by @Dorimanx and adapted for the Nexus 5"

This reverts commit 70aa05c881a656e0305181d4468ef8d60e178019.

Signed-off-by: Joao Paulo <joaolrpaulo@gmail.com>
Cleanup unused and buggy code

Signed-off-by: Joao Paulo <joaolrpaulo@gmail.com>
Cleanup unused and buggy code [2/2]

Signed-off-by: Joao Paulo <joaolrpaulo@gmail.com>
Wake Gestures interface and other options for S2W/S2S/DT2W

The wake gestures interface creates a new input device (wake_gesture) and generates input events for several gestures while the screen is off:

1 -> sweep right
2 -> sweep left
3 -> sweep up
4 -> sweep down
5 -> doubletap

These input events can be used by userspace apps to perform custom actions for each gesture

Also added bi-directional sweep2sleep, omnidirectional sweep2wake and optional haptic feedback for gestures

Signed-off-by: Joao Paulo <joaolrpaulo@gmail.com>
Wake gestures: adjust sweep length and doubletap timeout

Signed-off-by: Joao Paulo <joaolrpaulo@gmail.com>