1.7 Beta10Lite
I2C Fixes for 100% Battery bug
Kappa 1.7 Lite Beta 10
Removed utsrelease.h from Git
PM / hibernate: Avoid overflow in hibernate_preallocate_memory()

When system has a lot of highmem (e.g. 16GiB using a 32 bits kernel),
the code to calculate how much memory we need to preallocate in
normal zone may cause overflow. As Leon has analysed:

 It looks that during computing 'alloc' variable there is overflow:
 alloc = (3943404 - 1970542) - 1978280 = -5418 (signed)
 And this function goes to err_out.

Fix this by avoiding that overflow.

References: https://bugzilla.kernel.org/show_bug.cgi?id=60817
Reported-and-tested-by: Leon Drugi <eyak@wp.pl>
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: KaSt <k@ka.st>
msm_fb: implement bootlogo animation using a series of rle images available in the ramdisk

Signed-off-by: KaSt <k@ka.st>
cfs autogrouping: backported from Linux 3.0+ to linux 2.6.32

by faux123

Signed-off-by: nobodyAtall <tsogkas@ceid.upatras.gr>
Signed-off-by: KaSt <k@ka.st>
block/deadline: tweaked for better performance on android

Signed-off-by: nobodyAtall <tsogkas@ceid.upatras.gr>
Signed-off-by: KaSt <k@ka.st>
rcupdare: fix build error from CGROUPS

Signed-off-by: KaSt <k@ka.st>
ARM: Add optimised swahb32() byteswap helper for v6 and above

ARMv6 and later processors have the REV16 instruction, which swaps
the bytes within each halfword of a register value.

This is already used to implement swab16(), but since the native
operation performaed by REV16 is actually swahb32(), this patch
renames the existing swab16() helper accordingly and defines
__arch_swab16() in terms of it.  This allows calls to both swab16()
and swahb32() to be optimised.

The compiler's generated code might improve someday, but as of
4.5.2 the code generated for pure C implementing these 16-bit
bytesswaps remains pessimal.

swahb32() is useful for converting 32-bit Thumb instructions
between integer and memory representation on BE8 platforms (among
other uses).

Signed-off-by: Dave Martin <dave.martin@xxxxxxxxxx>
Signed-off-by: nobodyAtall <tsogkas@ceid.upatras.gr>
Signed-off-by: KaSt <k@ka.st>
PM / Suspend: Fix bug in suspend statistics update A pair of missing braces inside the state_store() function causes even invalid arguments to suspend to be wrongly treated as failed suspend attempts. Fix this.

Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: nobodyAtall <tsogkas@ceid.upatras.gr>
Signed-off-by: KaSt <k@ka.st>
Optimized RCU Tiny

Signed-off-by: nobodyAtall <tsogkas@ceid.upatras.gr>
Signed-off-by: KaSt <k@ka.st>
arm: spinlock: use ticket algorithm for ARMv6+ locking implementation

Signed-off-by: nobodyAtall <tsogkas@ceid.upatras.gr>
Signed-off-by: KaSt <k@ka.st>
cfs: tweaks for responsiveness

Signed-off-by: KaSt <k@ka.st>
from 3.x: sched/rt: Improve pick_next_highest_task_rt()

Signed-off-by: nobodyAtall <tsogkas@ceid.upatras.gr>
Signed-off-by: KaSt <k@ka.st>
lib/checksum.c: optimize do_csum a bit

Reduce the number of variables modified by the loop in do_csum() by 1,
which seems like a good idea.  On Nios II (a RISC CPU with 3-operand
instruction set) it reduces the loop from 7 to 6 instructions, including
the conditional branch.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: nobodyAtall <tsogkas@ceid.upatras.gr>
Signed-off-by: KaSt <k@ka.st>
Added triple buffering

Signed-off-by: KaSt <k@ka.st>
Increased fb size for triple buffering
init/main.c: execute lockdep_init as early as possible From: Ming Lei <tom.leiming@gmail.com>

This patch removes the lockdep warning[1] on ARM platform.
The warning is caused by printk inside smp_setup_processor_id.

It is safe to do this because lockdep_init doesn't depend on
smp_setup_processor_id, so make printk can be called as early
as possible without lockdep complainment.

[1], lockdep warning
[    0.000000] WARNING: lockdep init error! Arch code didn't call
lockdep_init() early enough?
[    0.000000] Call stack leading to lockdep invocation was:
[    0.000000]  [<c00164bc>] save_stack_trace_tsk+0x0/0x90
[    0.000000]  [<ffffffff>] 0xffffffff
Signed-off-by: Ming Lei <tom.leiming@gmail.com>

Signed-off-by: nobodyAtall <tsogkas@ceid.upatras.gr>
Signed-off-by: KaSt <k@ka.st>
Patched Video Drivers [Thanks: M66B]