af_unix: speedup /proc/net/unix
/proc/net/unix has quadratic behavior, and can hold unix_table_lock for
a while if high number of unix sockets are alive. (90 ms for 200k
sockets...)

We already have a hash table, so its quite easy to use it.

Problem is unbound sockets are still hashed in a single hash slot
(unix_socket_table[UNIX_HASH_TABLE])

This patch also spreads unbound sockets to 256 hash slots, to speedup
both /proc/net/unix and unix_diag.

Time to read /proc/net/unix with 200k unix sockets :
(time dd if=/proc/net/unix of=/dev/null bs=4k)

before : 520 secs
after : 2 secs

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Steven Whitehouse <swhiteho@redhat.com>
Cc: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
mm: push readahead to 512kB.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
net: wireless: bcmdhd: Disable debug, already in sync with google

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
net: wireless: bcmdhd: Use powersuspend to prevent panic

* Currently code is checking for deprecated early suspend
  which we don't have 3.4 onwards.
* So helper function is called for checking suspend status.
* This is causing race condition if screen is turned on and off
  rapidly.

Happy Case:
Screen Off -> Wifi Suspended -> Screen On -> Wifi Resumed

Race conditon:
Screen Off -> Wifi Suspended -> Screen On -> Wifi Resumed
-> Screen Off -> Screen On (rapid) -> Wifi Suspended!!

This causes watchdog bark / kernel panic as below:

[ 7217.522130] PM: noirq resume of devices complete after 4.327 msecs
[ 7217.527345] PM: early resume of devices complete after 2.901 msecs
[ 7217.549827] PM: resume of devices complete after 22.455 msecs
[ 7217.551660] Restarting tasks ... done.
[ 7217.558636] PM: suspend exit 2014-05-28 06:29:43.989676647 UTC
[ 7221.016418] [Touch] touch on
[ 7221.217701] mdss_dsi_panel_on
[ 7221.267290] lm3630_backlight_on
[ 7221.292473] dhd_set_suspend: Remove extra suspend setting
[ 7225.155909] lm3630_backlight_off
[ 7225.231024] [prevent_touchscreen_sleep]: payload = 10
[ 7225.383173] mdss_dsi_panel_off:
[ 7225.406145] [Touch] touch off
[ 7226.303258] [Touch] touch on
[ 7226.497452] mdss_dsi_panel_on
[ 7227.373713] [prevent_touchscreen_sleep]: payload = 10
[ 7227.525721] mdss_dsi_panel_off:
[ 7227.548667] [Touch] touch off
[ 7229.718552] [Touch] touch on
[ 7229.917659] mdss_dsi_panel_on
[ 7235.208821] dhd_set_suspend: force extra Suspend setting
[ 7235.220861] dhd_get_suspend_bcn_li_dtim beacon=100 bcn_li_dtim=3 DTIM=1 Listen=10
[ 7241.483289] Watchdog bark! Now = 7241.483285
[ 7241.483342] Watchdog last pet at 7220.296271
[ 7241.483428] cpu alive mask from last pet 0
[ 7241.483474] Causing a watchdog bite! IRQ = 35.

No errors detected
Boot info:
Last boot reason: wdog_bark

Let's use powersuspend driver replacing deprecated earlysuspend drivers.

CAUTION: Powersuspend driver shouldn't use screen on/off hooks else this
         patch is of no use!! If you really want screen on/off level of
         sensitivity, use LCD notifier for such drivers.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
net: wireless: bcmdhd: Remove noisy message

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
battery: just shut up will ya?
sound control: add register cache

bump to version 3.2

Signed-off-by: Paul Reioux <reioux@gmail.com>
Sound Control: expose direct register manipulations to userspace

bump driver version to 3.3

Signed-off-by: Paul Reioux <reioux@gmail.com>
Sound Control: Misc clean up for newer WCD9xxx SOCs

Bump driver version to 3.4

Signed-off-by: Paul Reioux <reioux@gmail.com>
Sound Control: let register lock be dependent on different hw revisions

Signed-off-by: Paul Reioux <reioux@gmail.com>
Sound Control: separate locking mechanism for recording and playback

with newer hardware revisions coming from Qualcomm, single register lock
control isn't sufficient to cover both playback and recording usage scenarios

bump to version 3.5

Signed-off-by: Paul Reioux <reioux@gmail.com>
msm: Skip building perf debug

* Reduces non-important cruft.

Change-Id: I42298ee544374067e838720ccda67e360740561f
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
perf/debug: disable some debug

Following my changes on Bacon, let's disable this here as well

Change-Id: I4d57ea5154908789b7627682d8c004e2733347ab
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Sound Control: add line gain to cached and register lock

bump version to 3.6

Signed-off-by: Paul Reioux <reioux@gmail.com>