Revert "msm_fb: display: Add new panel_mutex"

This reverts commit d8da92c61565736a3382780bf2b235be029aaac4.
usb: otg:  Retry putting the OTG PHY in low power mode.

The MSM OTG PHY does not go into low power mode when powered up with a
charger. Hence reset the PHY and add logic to retry the LPM Handshake.
This will avoid the msm_otg wakelock getting stuck forever when powered
up with a charger.

Change-Id: I00d90ce3bf3bb23e36aa42233a2e91a719264ec9
Signed-off-by: Ravikumar Vembu <a18394@motorola.com>
Signed-off-by: Luis Cruz <ljc2491@gmail.com>
msm: pm: Disable spc if multiple cpus are online

 (1) Disable the CPU2/CPU3/CPU4 standalone_power_collapse idle support.
 (2) We only allow CPU0 to hit standalone_power_collapse in idle path.

Change-Id: I6ee4b0c8436402098940e8ac10acd09e5c328dd4
Signed-off-by: Yuan Jiangli <jlyuan@motorola.com>
[ljc: fix pm-8x60 for kk_2.7 branch]
Signed-off-by: Luis Cruz <ljc2491@gmail.com>
arm: pm: add idle_enabled sysfs back

Depress following mpdecision error log which caused by
idle_enabled system interface not exist for cpu1-3
standalone power collapse:

MP-Decision: Error setting a sleep mode for secondary cores - -57

Standalone power collapse on cpu1-3 has been disabled in pm-8x60.c

Change-Id: I4667e9ae53aaa4ca5d7b74ea337eecd8665b7ec6
Signed-off-by: Ke Lv <a2435c@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/561343
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Lian-Wei Wang <lian-wei.wang@motorola.com>
Reviewed-by: Jiang-Li Yuan <jlyuan@motorola.com>
SLTApproved: Guo-Jian Chen <a21757@motorola.com>
Reviewed-by: Christopher Fries <c.fries@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
Signed-off-by: Luis Cruz <ljc2491@gmail.com>
mm: slub: Default slub_max_order to 0

To avoid locking and per-cpu overhead, SLUB optimisically uses
high-order allocations up to order-3 by default and falls back to
lower allocations if they fail. While care is taken that the caller
and kswapd take no unusual steps in response to this, there are
further consequences like shrinkers who have to free more objects to
release any memory. There is anecdotal evidence that significant time
is being spent looping in shrinkers with insufficient progress being
made (https://lkml.org/lkml/2011/4/28/361) and keeping kswapd awake.

SLUB is now the default allocator and some bug reports have been
pinned down to SLUB using high orders during operations like
copying large amounts of data. SLUBs use of high-orders benefits
applications that are sized to memory appropriately but this does not
necessarily apply to large file servers or desktops.  This patch
causes SLUB to use order-0 pages like SLAB does by default.
There is further evidence that this keeps kswapd's usage lower
(https://lkml.org/lkml/2011/5/10/383).

Signed-off-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>