SDRAM speed increased to 350Mhz
Disable frame pointer
drivers/star/star_battery_charger_ds.c: merge LG update
Update defconfig
Update makeflags
Revert "Disable GENTLE_FAIR_SLEEPERS"

This reverts commit 5697ce9302980af49ae3c0898de655a9e99ab6cf.
(cherry picked from commit bffd6d44aec7cbb6341cbe91cf14c3441f79b398)
Small hotplug fix
(cherry picked from commit 0dea6a64d5cefaac1a53823ee58c7426435b8726)
Backport dynamic writeback feature from 3.1
(cherry picked from commit 516d7c499ff45d1b3c25b4a26c50ddaf71ee44c3)
sched: don't call task_group() many times in set_task_rq()

It improves perfomance, especially if autogroup enabled.

The size of set_task_rq() was 0x180 and now it is 0xa0.

Signed-off-by: Andrew Vagin <avagin@openvz.org>
(cherry picked from commit 06cc49cc02559e8223146fc6b16d77a3df9ea7dc)
I/O-less dirty throttling

Reduce filesystem writeback from page reclaim
Backport from 3.2
(cherry picked from commit 1bc2d3fbb298715abcfc060cf2a4b3a03cf425e7)
Add a 'reason' to wb_writeback_work
(cherry picked from commit 0894eaae995975b326cc46bf0e9704d5a5a1dc8f)
net: wireless: bcmdhd: Fix division by 0 if dhd_watchdog_ms is 0

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit 2118b2359dfcfebb45e0444d77fc2cb58b2fd033)
init: calibrate: loops_per_jiffy update from 3.4
(cherry picked from commit 412d751211ac879f9a24b70e9db068a59dae6e74)
lib: Sparc's strncpy_from_user is generic enough, move under
 lib/

To use this, an architecture simply needs to:

1) Provide a user_addr_max() implementation via asm/uaccess.h

2) Add "select GENERIC_STRNCPY_FROM_USER" to their arch Kcnfig

3) Remove the existing strncpy_from_user() implementation and symbol
   exports their architecture had.

Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: David Howells <dhowells@redhat.com>
modified for Linux 3.0 Kernel from Linux 3.4+ by faux123
(cherry picked from commit 7afc17518cd0509fba2f46375ec52259eb1e4eeb)
lib: Sparc's strncpy_from_user is generic enough, move under
 lib/

To use this, an architecture simply needs to:

1) Provide a user_addr_max() implementation via asm/uaccess.h

2) Add "select GENERIC_STRNCPY_FROM_USER" to their arch Kcnfig

3) Remove the existing strncpy_from_user() implementation and symbol
   exports their architecture had.

Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: David Howells <dhowells@redhat.com>
modified for Linux 3.0 Kernel from Linux 3.4+ by faux123
(cherry picked from commit 06f53e89e225f9efffcbaa0a20db6ee5419837a7)
lib: add generic strnlen_user() function

This adds a new generic optimized strnlen_user() function that uses the
<asm/word-at-a-time.h> infrastructure to portably do efficient string
handling.

In many ways, strnlen is much simpler than strncpy, and in particular we
can always pre-align the words we load from memory.  That means that all
the worries about alignment etc are a non-issue, so this one can easily
be used on any architecture.  You obviously do have to do the
appropriate word-at-a-time.h macros.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 663d3b3bfaed4cceed4c0a83944c65725ca019b9)
lib: Fix generic strnlen_user for 32-bit big-endian machines

The aligned_byte_mask() definition is wrong for 32-bit big-endian
machines: the "7-(n)" part of the definition assumes a long is 8
bytes.  This fixes it by using BITS_PER_LONG - 8 instead of 8*7.
Tested on 32-bit and 64-bit PowerPC.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 98cacaf6a0a870897af90f9b63fff81317db056f)
kernel: Move REPEAT_BYTE definition into linux/kernel.h

And make sure that everything using it explicitly includes
that header file.

Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
modified for Linux 3.0 from Linux 3.4+ by faux123
(cherry picked from commit e2ef5f66bff074ad16d41cf07e3ee4d504fadf4e)
ARM: use generic strnlen_user and strncpy_from_user functions

This patch implements the word-at-a-time interface for ARM using the
same algorithm as x86. Although we have a clz instruction from ARMv5,
this only saves us one mov instruction when building with Thumb-2 and
makes no difference when targetting ARM, so we use the magic 0x0ff0001
constant for all CPUs. For big-endian configurations, we use the
implementation from asm-generic.

With this implemented, we can replace our byte-at-a-time strnlen_user
and strncpy_from_user functions with the optimised generic versions.

Signed-off-by: Will Deacon <will.deacon@arm.com>
modified for Linux 3.0 from Linux 3.4+ by faux123
(cherry picked from commit d7829de0ef7ccad2775e610e31e726c04deadea8)
ARM: vfp: Prevent process migration during vfp_init()

System crashes if there is process migration during vfp_init() call.

During vfp_init(), if a process which called vfp_enable() is migrated just
after the call, then the process executing the rest of code will access
a VFP unit which is not ENABLED and also smp_call_function() will not work
as it is expected.

This patch prevents accessing VFP unit disabled by preventing migration
and also replaces smp_call_function() with on_each_cpu() to make sure that
no VFP remains disabled.

Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
(cherry picked from commit c74f6f07ccef9d2a3f3729eeab1b2982f32a24e4)