DRIVERS: SLIMBUS: initial overclocking of slimbus .Increase root freq from 11 (24.526MHz) to 31 max (27+MHz) which is the largest it will take .Increase clock gear from 7 to 10 (max again)

This means SLIMbus will use its maximum potential to give the best audio quality for the hardware. Takes advantage of both hardware and the mods from zeroinfinity, also opening the door for more things that were previously limited by this. Researched and experimented by ZeroInfinity and Poondog

Change-Id: Ib31ccb87f4f8e106f414ddae8f40e365378498e4
Signed-off-by: poondog <markj338@gmail.com>
Signed-off-by: flar2 <asegaert@gmail.com>
DRIVERS: SLIMBUS: slimbus enhancements mkII

This time we keep the root freq to 11.
If Root Freq is set at 11, 24,576MHz has the best compatibility for all present sampling rates (e.g, any sample rate can be converted, 48KHz to 96KHz, 44.1KHz to 96KHz, 48KHz to 128KHz etc.) Increasing the root frequency is likely to cause invalid present sample rate combinations which leads to audio glitches such as distortion. "A Natural Frequency is defined as a CLK frequency that allows a family of data rates to be supported. The different sample rate flows can be optimally supported by changing a particular Natural Frequency using the Clock Gear." I looked at a Clock Gear/RF table and it looks like CLK Gear 10 and RF 24,576MHz (Stock RF) is an excellent combination due to its compatibility towards every other sample rates.

ZeroInfinity/Poondog

Change-Id: Id72842d83e90d730e3742149362f71151b306b1e
Signed-off-by: ZeroInfinity <infinitezero345@gmail.com>
Signed-off-by: poondog <markj338@gmail.com>
Signed-off-by: flar2 <asegaert@gmail.com>
Add sweep up to wake

Change-Id: I8c3aff91dca45bf71060f94842e0ceb350b3443a
Signed-off-by: flar2 <asegaert@gmail.com>
S2W/L2W/DT2W: Make vibration more immediate when activated

Change-Id: Ie4371d23a382eecd14ec6ce00e0c3ab042e9e417
Signed-off-by: flar2 <asegaert@gmail.com>
Wake Gestures interface

This creates a new input devices (wake_gesture) and generates input events for several gestures while the screen is off:

00000001 -> sweep right
00000002 -> sweep left
00000003 -> sweep up
00000004 -> sweep down
00000005 -> doubletap
00000006 -> long press HTC logo

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

Change-Id: Ib464e8d3433292f8e111ddea5b7cfb6929342e93
Signed-off-by: flar2 <asegaert@gmail.com>
wake gestures: fix l2m dependency, sweep over buttons, and multiple trigger

Change-Id: If686a85f1fd0c15f4b42f07f105355b750715e98
Signed-off-by: flar2 <asegaert@gmail.com>
Wake Gestures: minor improvements and fixes

Change-Id: I29e4acdafd44c0eb17c731128bdfb77371283409
Signed-off-by: flar2 <asegaert@gmail.com>
Wake Gestures: Ensure system has a chance to respond to input events and fix sweepup2wake

Change-Id: I49f2d29d99273b8be1266c0d628611f35ef1f214
Signed-off-by: flar2 <asegaert@gmail.com>
Wake Gestures: make sweep length longer and add timeout

Change-Id: I665c017b1540fc9e439c46a39913189cecf778e0
Signed-off-by: flar2 <asegaert@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).

Change-Id: I77c47867122004dd147ddb5e39147b3c173e6fc0
Signed-off-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: flar2 <asegaert@gmail.com>
Wake Gestures: standardize with other devices

Change-Id: Ifb8952890368a632dffdf0d537a38b71487559d6
Signed-off-by: flar2 <asegaert@gmail.com>