rwsem: steal writing sem for better performance

Commit 5a50508 changes to rwsem from mutex, caused aim7 fork_test
performance to dropped 50%. Yuanhan liu did an analysis, found it was
caused by strict sequential writing. Ingo suggest stealing sem writing from
front task in wait queue. https://lkml.org/lkml/2013/1/29/84

So does this patch.
In this patch, I just allow write stealing to happen when the first waiter
is also writer. The performance fully is now fully recovered.

Reported-by: lkp@linux.intel.com
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Alex Shi <alex.shi@intel.com>
lib/rwsem.c: fix compatibility issues with Linux 3.0.y

Signed-off-by: faux123 <reioux@gmail.com>
Update Linaro 13.02 GCC 4.7.3 "kernel builder"
sync: fix timeout = 0 wait behavior

Change-Id: I8b9254e92c26d9f44abbc0c77fb44624de947013
Signed-off-by: Jamie Gennis <jgennis@google.com>
net: bluetooth: Remove the AID_NET_BT* gid numbers

Removed bluetooth checks for AID_NET_BT and AID_NET_BT_ADMIN
which are not useful anymore.
This is in preparation for getting rid of all the AID_* gids.

Signed-off-by: JP Abgrall <jpa@google.com>
Revert "net: bluetooth: Remove the AID_NET_BT* gid numbers"

This reverts commit 6deca11771f05bf1e6c327e5518ae051d54e3f68.
Kernel 1.3.15H Stable
fixed lmkiller
disabled WIFI_PM managament control interface
readded:  staging: android: lowmemorykiller: Add config option to support oom_adj values

The conversion to use oom_score_adj instead of the deprecated oom_adj
values breaks existing user-space code. Add a config option to convert
oom_adj values written to oom_score_adj values if they appear to be
valid oom_adj values.

Change-Id: I68308125059b802ee2991feefb07e9703bc48549
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Adapted from Linux 3.4 from Android kernel common

Signed-off-by: faux123 <reioux@gmail.com>
Updated Samsung's CMA sources to the memory management changes introduced in 3.0.39
march armv7-a
lowmemorykiller: lower timeout
Revert "Updated Samsung's CMA sources to the memory management changes introduced in 3.0.39"

This reverts commit 5ecec330678776ff15882d10067dda41eb92108d.
mod v5.9