Reset GENTLE_FAIR_SLEEPERS and Larch_power to defaults.
cpufreq: Create a macro for unlock_policy_rwsem{read,write}

On the lines of macro: lock_policy_rwsem, we can create another macro for
unlock_policy_rwsem. Lets do it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
cpufreq: Add a get_current_driver helper

Add a helper function to return cpufreq_driver->name.

Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
cpufreq: handle cpufreq being disabled for all exported function.

When disable_cpufreq() is called some exported functions are still
being used that do not have a check for cpufreq being disabled.

Add a disabled check into cpufreq_cpu_get() to return NULL if
cpufreq is disabled this covers most of the exported functions. For
the exported functions that do not call cpufreq_cpu_get() add an
explicit check.

Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
CPUFREQ: use bool in __cpufreq_cpu_get sysfs as here: https://github.com/dorimanx/Dorimanx-LG-G2-D802-Kernel/commit/a9144436271583115a2230db15d0b6ae2c481d3c
CPUFREQ: fix printing of governor and driver name in multi core code.

original change:
https://github.com/dorimanx/Dorimanx-LG-G2-D802-Kernel/commit/4b972f0b04eaae645b22d99479b9aea43c3d64e7
cpufreq: Make sure target freq is within limits

__cpufreq_driver_target() must not pass target frequency beyond the
limits of current policy.

Today most of cpufreq platform drivers are doing this check in their
target routines. Why not move it to __cpufreq_driver_target()?

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Revert "msm: mdss: Add update notify for backlight change in static screen"

This reverts commit ec2462786bf10e49f4b60fa3f1b19e8d06d4426f.
Revert "msm: mdss: Turn off backlight while power off"

This reverts commit 019b3f69e9bc29d26f0fb578f8212dcac63c8548.
msm: mdss: clean up overlay resources properly when display is off

When display is turned off, the clocks are already turned off and
unprepared.  Earlier, when unsetting the overlay resource, we were
trying to re-enable the unprepared clocks.

Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
CPUFREQ: fix all __cpufreq_cpu_put with bool value.
ARM acpuclk: Inline heavy used functions to reduce overhead. by duki994@xda
Merge remote-tracking branch 'do/LG-STOCK-KK' into LG-STOCK-KK