ion: Import from sultan-kernel-skyrocket

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
kgsl: Port from CAF kk_2.7_rb1.34

*Patched for 3.0 kernels

Signed-off-by: Sultanxda <sultanxda@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
kgsl: fix genalloc BUG when detroying pagetable.

kgsl allocs some memory (in map_global), but never free it.
Fixes that.
Only happens when on GPUMMU ..

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm_fb: Import from sultan-kernel-skyrocket (CM 'next' branch)

*Imported sync drivers from CAF kk_2.7_rb1.34 (and disabled trace functions in sync)

Signed-off-by: Sultanxda <sultanxda@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm_fb: HACK: Fix MSMFB_DISPLAY_COMMIT ioctl mismatch

This is a dirty hack to get around MSMFB_DISPLAY_COMMIT ioctl not matching between display HAL and kernel. I'm not sure why they're not matching (maybe I just need to rebuild the ROM). Display HAL is sending command 0x40a46da4 for MSMFB_DISPLAY_COMMIT, so emulate MSMFB_DISPLAY_COMMIT when 0x40a46da4 command is sent.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
vidc: Backport from CAF kk_2.7_rb1.34

*Patched for 3.0 kernels

Signed-off-by: Sultanxda <sultanxda@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
scsi: Remove scsi_wait_scan

We have no use for this.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
cpufreq_ondemand: Update from sultan-kernel-pyramid-pure

Comes with 2-phase algorithm.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm8x60_celox: Set Ondemand 2-phase freq to 1080MHz

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm8x60: Disable 2D GPU cores

The 2D GPUs have been broken since cyanogen backported the newer kgsl drivers from CAF jb_2.6, as he forgot to fix the regulators for the 2D GPUs. No modern device has 2D GPUs, and nobody has noticed that they've been broken for a long time, so just remove them completely.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm8x60: Add 3D GPU overclocking

Signed-off-by: Sultanxda <sultanxda@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm8x60_celox: Add missing ondemand 2-phase code

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
scripts: Don't append "+" to localversion

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
staging: android: Import from Grouper KitKat kernel

*Reduced logger RAM usage
*Added security patches by Stephen Smalley @ NSA

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm8x60_celox: Clean up deprecated memory code

*We don't use PMEM
*MSM8x60 doesn't support writeback

Signed-off-by: Sultanxda <sultanxda@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm8x60_celox: Optimize memory allocations

*This results in an increase of ~50MB of RAM
*Framebuffer size has been reduced to a size that doesn't support HDMI (I read that HDMI isn't working with KitKat anyway)

Signed-off-by: Sultanxda <sultanxda@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
i2c: Fix compilation with HDMI disabled

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
include: Update Kbuilds from CM kernel

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
hid: Import UHID from sultan-kernel-pyramid-pure

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm8x60_celox: Fix MSM_FB_SIZE to support HDMI again

Signed-off-by: Sultanxda <sultanxda@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>