ARCH: BOARD-M7: revert to stock thermal settings for next commit

Signed-off-by: poondog <markj338@gmail.com>
msm-thermal from crpalmer: https://github.com/crpalmer/dna-kernel/commit/b8c61351e4870a005d7064318ac0ae64a33777ff

Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: poondog <markj338@gmail.com>
DRIVERS: THERMAL: rework thermal settings to be cooler and battery saving by default

Signed-off-by: poondog <markj338@gmail.com>
Revert "ARCH: power management tweaks (ziggy471)"

This reverts commit 5832ee7aee67fa775d34dde8e6231ec88b3ef386.
Revert "msm_kcal_ctrl: initial code for generic MSM LCD temperature calibrations"

This reverts commit 9df7ebeac3d70ba78765cf10581d3dda75dee0bd.
Revert "video: msm: Maintain histogram LUT state through suspend resume"

This reverts commit ac5380fb1d5e476be00f4485b5269e0d58cf25d3.
Revert "drivers/video/msm/mdp.c: fix merge derp!"

This reverts commit 0757f7729ed34b14ec3aca1413576213da4088bc.
Revert "mach-msm/Kconfig: add LCDC LUT"

This reverts commit 9605522ef4366805272df8d04f70ac70dfe1a5c7.
Revert "drivers/video/msm: restore update_lcdc_lut capabilities for MDP devices"

This reverts commit d02a999a23dcfb60283d4b77e6f2e3c4c7cb5434.
msm_kcal_ctrl: initial code for generic MSM LCD temperature calibrations

this should be compatible with all MDP devices from Qualcomm

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: poondog <markj338@gmail.com>
MSM KCAL: add sRGB LUT for better color space profiling

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: poondog <markj338@gmail.com>
MSM KCAL: add lut edit capability

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: poondog <markj338@gmail.com>
MSM KCAL: add checksum and data integrity checks

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: poondog <markj338@gmail.com>
MSM KCAL: add reset lut capability

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: poondog <markj338@gmail.com>
msm_kcal: add late resume drivers to autoload the lut

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: poondog <markj338@gmail.com>
msm_kcal: delay late resume to be last to resume

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: poondog <markj338@gmail.com>
MSM_KCAL: set control to default y

Signed-off-by: poondog <markj338@gmail.com>
cpufreq: governors: Remove duplicate check of target freq in supported range

Function __cpufreq_driver_target() checks if target_freq is within
policy->min and policy->max range. generic_powersave_bias_target() also
checks if target_freq is valid via a cpufreq_frequency_table_target()
call. So, drop the unnecessary duplicate check in *_check_cpu().

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

Conflicts:
	drivers/cpufreq/cpufreq_conservative.c
	drivers/cpufreq/cpufreq_ondemand.c
Signed-off-by: poondog <markj338@gmail.com>
debug: remove: remove some dmesg logspam from Linux mainline 3.4 fs

Signed-off-by: poondog <markj338@gmail.com>
writeback: fix occasional slow sync(1)

In case when system contains no dirty pages, wakeup_flusher_threads() will
submit WB_SYNC_NONE writeback for 0 pages so wb_writeback() exits
immediately without doing anything, even though there are dirty inodes in
the system.  Thus sync(1) will write all the dirty inodes from a
WB_SYNC_ALL writeback pass which is slow.

Fix the problem by using get_nr_dirty_pages() in wakeup_flusher_threads()
instead of calculating number of dirty pages manually.  That function also
takes number of dirty inodes into account.

Signed-off-by: Jan Kara <jack@suse.cz>
Reported-by: Paul Taysom <taysom@chromium.org>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: poondog <markj338@gmail.com>