sched: set sched_mc_power_savings to 2

This tunable provides serious power saving improvements similar to the power savings of hotplugging cores. Since we are using interactive governor by default, we're always using 2 cores at any time. Thus, we can benefit from this as this feature packs tasks together and try to bind them to cpu0, which in theory will let cpu1 idle longer, thus improving battery life.

Signed-off-by: zwliew <zhaoweiliew@gmail.com>
mm: increase VM_MAX_READAHEAD to 512kB

Increasing readahead to 512kB should bring about read/write performance increases.

Signed-off-by: zwliew <zhaoweiliew@gmail.com>
bcmdhd: set off-screen PM mode to FAST

This allows the best wifi performance in screen off mode.

Change-Id: I1fa94e719581408655be8af923d30216038ea738
Signed-off-by: zwliew <zhaoweiliew@gmail.com>
ARM: use -mcpu=cortex-a9 when targeting U8420 CPUs (Cortex-A9 based)
This is done in order to force compliant GCC compiler to generate the new
sdiv/udiv instructions supported by Cortex-A9 architecture

Change-Id: I6b27e5eeadad17259f77aac53fabfcaf257657fe
Signed-off-by: zwliew <zhaoweiliew@gmail.com>
ARM: decompressor: Enable unaligned memory access for v6 and above

Modern GCC can generate code which makes use of the CPU's native
unaligned memory access capabilities.  This is useful for the C
decompressor implementations used for unpacking compressed kernels.

This patch disables alignment faults and enables the v6 unaligned
access model on CPUs which support these features (i.e., v6 and
later), allowing full unaligned access support for C code in the
decompressor.

The decompressor C code must not be built to assume that unaligned
access works if support for v5 or older platforms is included in
the kernel.

For correct code generation, C decompressor code must always use
the get_unaligned and put_unaligned accessors when dealing with
unaligned pointers, regardless of this patch.

Signed-off-by: Dave Martin <dave.martin@linaro.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Fix some compilation errors with gcc 4.8.2
usb: gadget: composite: Fix a bug in delayed status handling

The SET_CONFIGURATION control request's status phase is delayed
till the new config change is handled by the file-storage thread.
If the cable is disconnected or the bus is reset before the
previous config is handled, then composite driver is not notified
about the delayed status.  As a result of which, the delayed_status
field of composite device structure remains non-zero.  The status
phase of next SET_CONFIGURATION control request is not sent.
This makes the gadget unusable.

Calling usb_composite_setup_continue() after the disconnect or reset
does not make any sense.  If the host sends another control request
before the status phase of the previous control request is sent, the
delayed_status must be reset to zero.  This is not straight forward
as the UDC handles some control requests without delegating them to
the composite driver.  A simple fix would be resetting the delayed
status value after the disconnect/reset.

CRs-Fixed: 501527
Change-Id: I67c832afc88c9e7d025247e539b7223fd83644d7
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
 mfd: ab8500-gpadc: Add CONFIG_PM_SLEEP to suspend/resume

Add CONFIG_PM_SLEEP to suspend/resume functions to fix the build
warnings when CONFIG_PM_SLEEP is not selected. This is because
sleep PM callbacks defined by SET_SYSTEM_SLEEP_PM_OPS are only used
when the CONFIG_PM_SLEEP is enabled.

drivers/mfd/ab8500-gpadc.c:891:12: warning: 'ab8500_gpadc_suspend' defined but not used [-Wunused-function]
drivers/mfd/ab8500-gpadc.c:903:12: warning: 'ab8500_gpadc_resume' defined but not used [-Wunused-function]

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
golden: import UHID

Found on GT-P3110_JB_Opensource_Update1 from http://opensource.samsung.com

Also add missing UHID Documentation & Sample.
golden: enable UHID support
add Ofast and flags optimization
flags optimization based JustArchiV3
http://forum.xda-developers.com/showthread.php?p=52736153