Remove build script
cpufreq: Introduce CPU-boost framework

The CPU-boost framework allows you to place hooks in various drivers to boost the CPU for either a specified duration or indefinitely (until it is manually unboosted). If a new boost request is sent while the CPU is boosted then the new boost request will take precedence and immediately override the current boost.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu_boost: Respect max frequency

If the requested boost frequency is greater than the maxfreq then reduce the boost to 2 steps below the current maxfreq (108MHz below the current maxfreq). If the maxfreq is 486MHz or lower then the boost will be canceled.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu_boost: Add functions to enable/disable boosting

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu_boost: Fix unbalanced cpufreq_cpu_get

Also, minor clean-up.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu_boost: Only restore minfreq to CPU0

Previously, when a non-primary CPU core was boosted, if it was offline after a boost expired, then the minfreq on that CPU would still be set to the boost frequency. Minfreq is now synced across all cores in msm/cpufreq, so we only need to restore the minfreq to CPU0.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu_boost: Clean up minfreq restoration

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu_boost: Allow boosts equal to the maxfreq

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu_boost: Only boost CPU0 and add safety checks

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpufreq: Rename cpu_boost.c to cpu-boost_framework.c
cpu-boost_framework: Improve maxfreq check and logging

Maxfreq is now checked in realtime, versus saving it to an int and checking the int.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu-boost_framework: Use kHz instead of MHz

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu-boost_framework: Add input-boost handler

Input boosting is disabled by default; to enable, write to input_boost_freq and input_boost_ms nodes in sysfs. CPU will be boosted on touchscreen input.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
Revert "cpufreq_ondemand: Add 2-phase feature"

This reverts commit 486b707a94f8af7e4976283f1ea612c4ccae6a91.
cpufreq_ondemand: Import from 3.0 kernel

We want the 2-phase freq and input-boost features.
cpufreq: ondemand: Remove input boost

A probably imperfect extermination of ondemand's input boost.
We rely on the universal cpu boost input handler now.
pyramid: Remove msm8660_pm_8x60 device
Rename 'Sultan_defconfig' to 'Sultan_pyramid_defconfig'
Sultan_pyramid_defconfig: Update