ramdisk: Add MIUI support

Thanks to @dorimanx and siankatabg from XDA
msm_cpu_freq_limit: initial coding for controlling MSM quadcore cpus

this module will allow proper max frequency control across all msm cores

Signed-off-by: Paul Reioux <reioux@gmail.com>
msm_cpufreq_limit: add GPL V2 licensing to access to GPL symbols

fix Makefile to force no memory relocation

Signed-off-by: faux123 <reioux@gmail.com>
cpufreq_limit: remove unused vars

Signed-off-by: faux123 <reioux@gmail.com>
mach-msm:cpufreq_limit: fix merge derp and minor code clean up

Signed-off-by: Paul Reioux <reioux@gmail.com>
cpufreq_limit: adapted for use as built-in kernel option

set default stock frequency and remove unnecessary debug messages

bump version to 1.2

Signed-off-by: Paul Reioux <reioux@gmail.com>
cpufreq: enforce cpu limit at all times + define rename
Fixed cherry-picking...

Sorry, I forgot to save it :(
Merged Intelli thermal Driver by @faux123 to MSM Thermal! + all my changes.
msm: thermal: Update to speed up bootup time

Update KTM driver to remove flush_scheduled_work that
would introduce bootup delay. This patch replaces
cancel_delayed_work with cancel_delayed_work_sync
to cancel a delayed work.

Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Intelli Thermal: (intergated to msm_thermal) added new parameters and more.

Thanks Alucard24 for mods.
intelli_thermal_stats and some optimizations.

Dorimanx added:
I have merge intelli thermal as stand alone just for updates.
it's not actually used in my tree, all moved to msm_thermal
Fixed INTELLI_THERMAL_STATS Kconfig for my tree. and set OFF. not needed.

Conflicts:
	arch/arm/configs/dorimanx_d800_defconfig
	arch/arm/configs/dorimanx_d801_defconfig
	arch/arm/configs/dorimanx_d802_defconfig
	arch/arm/configs/dorimanx_d803_defconfig
	arch/arm/configs/dorimanx_f320_defconfig
	arch/arm/configs/dorimanx_ls980_defconfig
	arch/arm/configs/dorimanx_vs980_defconfig
Intelli Thermal: Updates by Alucard24

Use schedule_work_on. It works better, phone gains speed.
Use system_power_efficient_wq.
Intelli Thermal: fixed my error, poll_ms must be init! and best 250ms
Intelli Thermal Control: Tuning and corrections to TEMP and controls.

We cant wait 10ms in queue_delayed_work CPU letancy is 0, we must react.

or cpu overheat fast and panic.

now we can go up to 80c and stable.
INTELLI THERMAL: Restore Default delayed_work + other stock code.

now it's stable on high temp. before was reaching 100C and reboot.
INTELLI THERMAL: allow to read psm_temp + vdd_rstr from dtc config.

Set 5c difference for freq limit/release
set min lock speed to 1267200 to allow faster cooling.
msm: thermal: Limit maximum cpu frequency instantly.

If current policy's max cpu frequency is below the maximum
possible frequency, instead of wasting time cycling through
indices, we are now limiting maximum cpu frequency instantly.
However, if limits are changed manually during throttling,
the logic may be confused.

Also, cleanup some kmsg info spam in the process.

Dorimanx Note:
I have checked the full source at myfluxi build
and found more useful code diff.

Merged along with the original commit.
https://github.com/myfluxi/kernel_msm/commit/b40409da9081b8ea7cafd2ae9efb7777fc9e1ca8
Intelli Thermal driver: switch to local CPUFREQ Limit control.

Remove msm_cpufreq_set_freq_limits and register with
CPUFREQ_POLICY_NOTIFIER to get immediate update on cpu frequencies
as long as a cpufreq_update_policy is called. Ensure that when
cpufreq_update_policy is called, cpu will not be hotplugged by
calling get_online_cpus().

Change-Id: I802d51ad1c352a19d2e456f9f6a89f8d5b89aad8
Signed-off-by: Jennifer Liu <chihning@codeaurora.org>