cpufreq: add ondemand governor from stratosk and AK
cpufreq: clean up unused governors
cpufreq: smartmax: added new governor based on ondemand and smartass2

Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>

Conflicts:
	arch/arm/configs/ak_bacon_defconfig
	drivers/cpufreq/Kconfig
cpufreq: slim: add new governor and adpt it for new cm branch

Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
cpufreq: add back things I accidentally deleted from Kconfig
defconfig: update defconfig
cpufreq: delete unused drivers
arm: don't call try_to_freeze() from do_signal()

get_signal_to_deliver() will handle it itself

Change-Id: Ibe49818ca8cd514856a2294b8311f31dbd71404e
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Reviewed-on: http://gerrit.pcs.mot.com/625802
Submit-Approved: Jira Key <jirakey@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Reviewed-by: Christopher Fries <c.fries@motorola.com>

Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
msm: memutils: 8974: memcpy, memmove optimization

According to tune result, change preload distance to 10
cache lines for 8974.
And considering bkk-b is sharing code for 8974, 8226, 8x16,
we seperate the code for 8974 specially.

The markable improvement:
    memcpy : 67%
    copy_to_user : 37%
    copy_from_user : 37%
    memmove : 70%

Raw data is as below:

BEFORE:
	memcpy 1000MB at 5MB       : took 659744 usec, bandwidth 1515.515 MB/s
	copy_to_user 1000MB at 5MB : took 681202 usec, bandwidth 1467.467 MB/s
	copy_from_user 1000MB at 5M: took 682052 usec, bandwidth 1466.466 MB/s
	memmove 1000GB at 5MB      : took 763133 usec, bandwidth 1310.310 MB/s
	copy_to_user 1000GB at 4kB : took 714487 usec, bandwidth 1399.399 MB/s
	copy_from_user 1000GB at 4k: took 699861 usec, bandwidth 1428.428 MB/s
	copy_page 1000GB at 4kB    : took 634857 usec, bandwidth 1575.575 MB/s
	memmove 1000GB at 4kB      : took 791389 usec, bandwidth 1263.263 MB/s
	memcpy 1000MB at 5MB       : took 659744 usec, bandwidth 1515.515 MB/s

AFTER:
	memcpy 1000MB at 5MB       : took 395178 usec, bandwidth 2530.530 MB/s
	copy_to_user 1000MB at 5MB : took 497667 usec, bandwidth 2009.009 MB/s
	copy_from_user 1000MB at 5M: took 496832 usec, bandwidth 2012.012 MB/s
	memmove 1000GB at 5MB      : took 449217 usec, bandwidth 2226.226 MB/s
	copy_to_user 1000GB at 4kB : took 489006 usec, bandwidth 2044.044 MB/s
	copy_from_user 1000GB at 4k: took 483982 usec, bandwidth 2066.066 MB/s
	copy_page 1000GB at 4kB    : took 377170 usec, bandwidth 2651.651 MB/s
	memmove 1000GB at 4kB      : took 483015 usec, bandwidth 2070.070 MB/s

Change-Id: I678d418b15701efea902efae9b94490993d53f37
Signed-off-by: Hong-Mei Li <a21834@motorola.com>
Reviewed-on: http://gerrit.mot.com/634422
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Yi-Wei Zhao <gbjc64@motorola.com>
SLTApproved: Christopher Fries <c.fries@motorola.com>
Reviewed-by: John Zafiris <johnz@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
cpufreq: interactive: don't schedule timer on offline cpu

It shall not add timer on an offline CPUs, else it will cause
kernel panic.

And also don't reschedule the timer on an offline cpu in idle
and timer callback. Actually the timer shall be cancelled when
cpu is offline.

Change-Id: Id314f15be3d12ab49e5cdcf6ae89bd88b376308a
Signed-off-by: Lianwei Wang <a22439@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/539160
SLT-Approved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
cpufreq: Avoid using global variable total_cpus

The change is to compile on kernels where cpufreq stats are compiled as
a module (CONFIG_CPU_FREQ_STAT=m), because total_cpus is not exported for
module use.

Reported-By: Emilio López <elopez93@gmail.com>
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
Change-Id: I4f3c74f0fac5e8d9449655b26bf3b407b0fe4290
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
smartmax: update to Omni 8974
cpufreq: smartmax: Move get_cpu_idle_time() to cpufreq.c
cpufreq: cpufreq_smartmax: set global RW writeable for all and fix min_sampling_rate

Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
defconfig: enable 8974 settings for SmartMAX
Revert "Apply arch: arm: lib: optimize memcpy for cortex-A15 to memutils"

This reverts commit 76575cc316cbd59fc4d652f93f9f7b24bb672de9.
Revert "arch: arm: lib: optimize memcpy for cortex-A15"

This reverts commit 51e93c2729a8648f2bf7fbd3282c2c1f382f8486.
defconfig: update governor/sched/etc
deadline: update settings to match franco
Initial Overclock/Voltage changes

Thanks/Credit to CPA-POKE, majority of code from his initial OC/UV.
Thanks/Credit to Faux123 for some code reference.

Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>