G2: Zero out the kcal limits in all board sources

This fixes RGB control

Signed-off-by: dr87 <nb00870@gmail.com>
Defconfigs: Clean up and make compatible AOSP configs

Signed-off-by: dr87 <nb00870@gmail.com>

Conflicts:
	arch/arm/configs/g2-bell-perf_defconfig
	arch/arm/configs/g2-rgs-perf_defconfig
	arch/arm/configs/g2-tls-perf_defconfig
	arch/arm/configs/g2-vtr-perf_defconfig
Add bullshit device tree stubs.

LG's 4.2 aboot searches for

/soc/qcom,mdss_dsi_lgit_video
/soc/qcom,mdss_dsi_jdi_video
/soc/qcom,mdss_dsi_jdi_cmd
/soc/qcom,mdss_dsi_lgit_cmd

before booting the kernel; and it will explicitly fail to boot if they aren't
present, as defined somewhere in their aboot source. This will appease the
4.2 bootloader and allow us to boot a kernel built on 4.4 sources.

The 4.4 aboot will also append:
"mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_g2_lgd_cmd" to kernel's command line, so
adding the above to the BOARD_KERNEL_CMDLINE in the device folder is necessary
to get the panel to work. (Thanks to xda user garyd9 for pulling /proc/cmdline)

A big thank you to Dan Rosenberg (djrbliss) for loki (the exploit that allows
for custom boot images)
mm: push readahead to 512kB.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
scripts: add dtb tool
scripts: add mkboot
msm: krait: add CPU Voltage control.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
arch/arm/mach-msm/cpufreq.c: reduce dmesg log spam

Signed-off-by: Paul Reioux <reioux@gmail.com>
use of swp{b} is deprecated for ARMv6 and ARMv7
audit: kiss goodbye you stupid piece of crap logging messages.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
lib/memcopy: use glibc version

the kernel's memcpy and memmove is very inefficient. But the glibc version is
quite fast, in some cases it is 10 times faster than the kernel version. So I
introduce some memory copy macros and functions of the glibc to improve the
kernel version's performance.

The strategy of the memory functions is:
1. Copy bytes until the destination pointer is aligned.
2. Copy words in unrolled loops.  If the source and destination are not
   aligned in the same way, use word memory operations, but shift and merge
   two read words before writing.
3. Copy the few remaining bytes.

Signed-off-by: Miao Xie <miaox*******>
Signed-off-by: faux123 <reioux@gmail.com>
lib/string: use glibc version

the performance of memcpy and memmove of the general version is very
inefficient, this patch improved them.

Signed-off-by: Miao Xie <miaox*******>
Signed-off-by: faux123 <reioux@gmail.com>
ext4: fix memory leak in xattr

If we take the 2nd retry path in ext4_expand_extra_isize_ea, we
potentionally return from the function without having freed these
allocations.  If we don't do the return, we over-write the previous
allocation pointers, so we leak either way.

Spotted with Coverity.

[ Fixed by tytso to set is and bs to NULL after freeing these
  pointers, in case in the retry loop we later end up triggering an
  error causing a jump to cleanup, at which point we could have a double
  free bug. -- Ted ]

Change-Id: I49b8ca41a6c6d44b563eb23306870258a3affd3b
Signed-off-by: Dave Jones <davej@fedoraproject.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Cc: stable@vger.kernel.org
Git-commit: 6e4ea8e33b2057b85d75175dd89b93f5e26de3bc
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
cpufreq: Remove CPUBoost
msm: do not compile rq_stats.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
Add my Hotplug driver code. All previous commits are squashed into this version.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
msm: thermal: add my msm thermal code.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Conflicts:
	drivers/thermal/msm_thermal.c
cpufreq: add generic get_cpuidle_time to the cpufreq headers so that we don't need to implement this everytime we need it.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
input: add generic touchboost driver based on CAF's cpu-boost driver code.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Conflicts:
	drivers/input/touchscreen/Makefile
remove annoying unwind warning