hashtable: introduce a small and naive hashtable

This hashtable implementation is using hlist buckets to provide a simple
hashtable to prevent it from getting reimplemented all over the kernel.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
block,elevator: use new hashtable implementation

Switch elevator to use the new hashtable implementation. This reduces the
amount of generic unrelated code in the elevator.

This also removes the dymanic allocation of the hash table. The size of the table is
constant so there's no point in paying the price of an extra dereference when accessing
it.

This patch depends on 2f21477058e69a440fb65fb16ddfb1891bac5703 ("hashtable: introduce a small and naive
hashtable") which was merged in v3.6.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
ARM: entry: allow ARM-private syscalls to be restarted

System calls will only be restarted after signal handling if they
(a) return an error code indicating that a restart is required and
(b) have `why' set to a non-zero value, to indicate that the signal interrupted them.

This patch leaves `why' set to a non-zero value for ARM-private syscalls,
and only zeroes it for syscalls that are not implemented.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
ARM: msm: Configure Krait-specific setting

Set Krait-specific configuration setting when enabling
MMU only on appropriate cores.

Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@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>