Sultan_defconfig: Set default CPU governor to Performance
Remove pyramid_defconfig
Rename 'Sultan_defconfig' to 'Sultan_pyramid_defconfig'
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>
Sultan_pyramid_defconfig: Enable CPU-boost framework
Add initial CPU-boost-framework hooks

CPU is currently boosted for these activities:
*Taking a picture (1404MHz for 3s)
*Starting video playback (1242MHz for 5s)
*Recording video (594MHz indefinite)
*Turning on the display (1512MHz for 5s)

The CPU-boost framework is disabled when the proximity sensor is open (screen is expected to turn off and on many times when proximity sensor is open, so disabling CPU-boost prevents battery drain due to screen wake-up boost).

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

Signed-off-by: Sultanxda <sultanxda@gmail.com>
Sultan_defconfig: v1.8.0