Fix GCC 4.7

Signed-off-by: SkipXS <sskkiipp@gmail.com>
cpufreq.c/h: add utilization functions

- needed for hotplug

Signed-off-by: SkipXS <sskkiipp@gmail.com>
cpufreq_ondemand.c: Update ondemand to latest version

Signed-off-by: SkipXS <sskkiipp@gmail.com>
dyn_hotplug.c: Add Dynamic Hotplug for mako

Signed-off-by: SkipXS <sskkiipp@gmail.com>
mach-msm/Kconfig: disable MSM_RUN_QUEUE_STATS

- we don't use mpdecision anymore

Signed-off-by: SkipXS <sskkiipp@gmail.com>
msm: cpufreq: Break out early if target frequency is the same as the current

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
msm: acpuclock-krait: Inline some functions

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
msm: pm: send notification only for SPC and PC

Currently the pm notification is sent for all the low power
modes of each CPU. Generally the subscriber to this notification
expects to be notified for core power collapse. For example
interrupt controller subscribes this notification to save
and restore its context when entering and exit power collapse
respectively. So this is not necessary for shallow power modes
like WFI and Retention.

This change is to send the notification for only standalone
power collapse of each core and idle power collapse of core0.

Change-Id: I39fb6a6bfb47ca49d6ec8df8cad1fd74424140a0
Signed-off-by: Venkat Devarasetty <vdevaras@codeaurora.org>
kgsl_pwrscale: Rework policy sysfs implementation

In the current implementation, the pwrscale policy kobj is
created when the pwrscale driver initializes.  It is then added
to the kobj hierarchy when a governor adds sysfs files.

When a governor removes sysfs files, it frees the kobj.

Then, when a new governor starts up, it attempts to add an
uninitialized kobj.  This fails.

Instead, use a constant kobj for the policy directory,
and add governor-specific attributes under it.  If a
sysfs group is given a name, all attributes in the group
will appear in a subdirectory with that name (see cpufreq
governor tuning variables).  Use this approach for our
governor tuning.

TODO (possibly in a future patch) - Rework this so the
governor attributes can be groups attached directly to
the pwrscale kobj.

Change-Id: I7b8ae6d5e690ee107be037ccaf2e737e52062feb
kgsl: Implement ondemand scaling policy

The "trustzone" policy that is default relies on an undocumented
black box to make scaling decisions. Therefore introduce ondemand
with the same algorithm as used for scaling cpu frequency.

Signed-off-by: SkipXS <sskkiipp@gmail.com>
adreno.h: make kgsl_pwrscale_ondemand default

Signed-off-by: SkipXS <sskkiipp@gmail.com>
Kconfig.iosched: Disable Deadline and CFQ

- use noop as default: Advantages low cpu usage, fast, "fair" most of
the time

Signed-off-by: SkipXS <sskkiipp@gmail.com>
mako_defconfig: Version and removal of cpu governors

- except ondemand and performance

Signed-off-by: SkipXS <sskkiipp@gmail.com>