media: exynos: mfc: print some debug info in irq on invalid context

Change-Id: I5f857f2aad2c861ad26072555cfcfe217e618090
Signed-off-by: Dima Zavin <dima@android.com>

Conflicts:
	drivers/media/video/exynos/mfc/s5p_mfc.c
Log when a device on a mmc bus is hw reset

The original message was a debug message, turned off by default, so
we couldn't tell if it was being invoked when we had emmc errors.
Change it to KERN_WARN level, always print it, and improve the
actual error message.

Change-Id: I909a106470e139402ba2764d486bd3aa464a6cc6
Signed-off-by: Ken Sumrall <ksumrall@android.com>
Revert "ARM: EXYNOS: Manta: Enable emmc 4.5 packed write support"

This reverts commit 8a1e1a4b5e49d1e41c39a16da42ac4f129595c61.
This is for testing to see if turning off packed write support
fixes the eMMC crashes we've been seeing.

Conflicts:

	arch/arm/mach-exynos/board-manta.c

Change-Id: I390f6cbd78fde9f7e052995d66a4392c019791c5
Signed-off-by: Ken Sumrall <ksumrall@android.com>
media: exynos: mfc: don't drop wakeup source in multiple context case

Wakeup sources aren't ref counted, but we we always dropping ours in
release. If there were multiple contexts open, it would allow suspend
even though the MFC was still in use. Although, by itself, it's not a
problem, it did not have the intended effect.

Bug: 7261738
Change-Id: Id42006b2cff0e84711047a149a8654ed950f012a
Signed-off-by: Dima Zavin <dima@android.com>
Revert "power: android-battery: push uevent whenever charge source changes"

This reverts commit d22c22edb46eb3fc3bd21320092f15f9fb48225d.
Revert "power: android-battery: remove ac and usb supplies"

This reverts commit 8ce0ad208db639bd861623dc0b1743af4d7d5149.
Some color tweaks
slub: fix a possible memory leak

Memory allocated by kstrdup should be freed,
when kmalloc(kmem_size, GFP_KERNEL) is failed.

Acked-by: Christoph Lameter <cl@linux.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Joonsoo Kim <js1304@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
v4l2: fix the memory leak

commit 9985432a82e6700cf9759f413ecaecbf617318cb

check for fh->dev being NULL before kzalloc to fix the memory leak

Change-Id: I3377ef39297f63c692aa5451d2bdbe327e2df18a
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Added optimized ARM RWSEM algorithm.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
sched: Improve scalability via 'CPU buddies', which withstand random perturbations

Traversing an entire package is not only expensive, it also leads to tasks
bouncing all over a partially idle and possible quite large package.  Fix
that up by assigning a 'buddy' CPU to try to motivate.  Each buddy may try
to motivate that one other CPU, if it's busy, tough, it may then try its
SMT sibling, but that's all this optimization is allowed to cost.

Sibling cache buddies are cross-wired to prevent bouncing.

4 socket 40 core + SMT Westmere box, single 30 sec tbench runs, higher is better:

 clients     1       2       4        8       16       32       64      128
 ..........................................................................
 pre        30      41     118      645     3769     6214    12233    14312
 post      299     603    1211     2418     4697     6847    11606    14557

A nice increase in performance.

Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1339471112.7352.32.camel@marge.simpson.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
binfmt_elf.c: use get_random_int() to fix entropy depleting. Original commit: https://patchwork.kernel.org/patch/1745611/

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
hashtable: introduce a small and naive hashtable

This hashtable implementation is using hlist buckets to provide a simple
hashtable to prevent it from getting reimplemented all over the kernel.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
[ Merging this now, so that subsystems can start applying Sasha's
  patches that use this   - Linus ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
block,elevator: use new hashtable implementation

Switch elevator to use the new hashtable implementation. This reduces the
amount of generic unrelated code in the elevator.

This also removes the dymanic allocation of the hash table. The size of the table is
constant so there's no point in paying the price of an extra dereference when accessing
it.

This patch depends on d9b482c ("hashtable: introduce a small and naive
hashtable") which was merged in v3.6.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
sync: fix timeout = 0 wait behavior

Change-Id: I8b9254e92c26d9f44abbc0c77fb44624de947013
Signed-off-by: Jamie Gennis <jgennis@google.com>