cpufreq: open up write permissions for sysfs

Until uevent notifications are reliable again

Change-Id: Iae057ee04300faa63a3bc41e1f1d73d1919cb435
Revert "drivers: cpufreq: Tune intelliactive and interactive"

This reverts commit c0402e967dcc2d62e7677a5cee7d89b91e8b7a37.
Revert "cpufreq: interactive: Fix null pointer dereference in interactive governor"

This reverts commit 47b4024bdcdb04b859015f3d1ab6f8883daa85c7.
Revert "cpufreq: interactive: Use default min_sample_time if SDF is zero"

This reverts commit 80eed3d7ac4cd333e625c6921efdad11dc8e8d4a.
Revert "cpufreq: interactive: Modifying sync_freq implementation"

This reverts commit f3296d702ae5b6424acb30e01d0f1cfed0a2ddd5.
Revert "cpufreq: interactive: sync freq feature for interactive governor"

This reverts commit a2b3e2aa160f7fc702028cad464be4dbdd694359.
cpufreq: interactiveX V4: limit max freq when screen off

screen_off_max configurable via sysfs - default 1267200
cpufreq: interactive: Remove unnecessary cpu_online() check

Cpufreq no longer calls governor callback for offlined cpus. i.e. All
policy->cpus are guaranteed to be online. Hence we don't need explicit check to
see if cpu is online or not.

Change-Id: I9ad85ea4addd5b4a40952e59ed730dd15e328690
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
cpufreq: interactive: Move definition of cpufreq_gov_interactive downwards

This moves definition of cpufreq_gov_interactive towards the bottom of file, so
that we don't have to add prototype of cpufreq_governor_interactive() in the
beginning of file.

Change-Id: I04bd1004954eb36502c5cd7e35d3d7274cddaf95
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>

Conflicts:

	drivers/cpufreq/cpufreq_interactive.c
cpufreq: interactive: sync freq feature for interactive governor

1) Add load info to cpufreq_interactive_cpuinfo
2) If load on any other online cpu exceeds sync_freq_load_threshold,
   do not allow the frequency to drop below sync_freq

Change-Id: I3617e10f87b85178914a18bcf04ac2a31a4f1ec1
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
(cherry picked from commit c26e25944543c61b34b1830938bb6f353a2580ac)

Conflicts:

	drivers/cpufreq/cpufreq_interactive.c
cpufreq: interactive: Modifying sync_freq implementation

1. Check for up_threshold_any_cpu_freq instead of sync_freq to
   boost the frequency to sync_freq.
2. Change the load threshold name from sync_freq_load_threshold to
   up_threshold_any_cpu_load
3. Do not consider CPUs with load less than up_threshold_any_cpu_load
   while evaluating max load across CPUs

Change-Id: Ia0e537edbf38a5006c1a22f5c472daa0d086ffc9
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
cpufreq: interactive: Use default min_sample_time if SDF is zero

Use min_sample_time to step down from max frequencies if
sampling_down_factor is set to zero.

Change-Id: I2e89bef6220557cb95efd20d658e0c05753b4c3c
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
cpufreq: interactive: set some defaults for the sync freq feature
cpufreq: interactive: try changed value