commit linux 3.0.45 patches

Change-Id: Icd0a855d6e689c67d64374a7af8d302b0e075af3
serial: pl011: remove samsung's own workaround for corruption at high clock speeds

this causes more data corruption as it conflicts with st-ericsson's workaround at e1eff59615a6395758318d7c6f760eccf7ddef62. turns out the stupid bt issues was due to samsung's own workaround conflicting with st-ericsson's in linux 3.0.45 :|

Change-Id: I0eb3c33201fd968509ecfa78b86535c0062010d3
net: bluetooth_mgmt: updates from linux 3.0.101

Change-Id: I2574913bd0ed1c1d2d57edd7b76e6c29fe15d836
makefile: remove false comment

this comment is rendered false now since i already applied linux 3.0.45 patches

Change-Id: I9938ade2393cdd8c48a4362b4b7a573bf71130f3
arm: adapt upstream updates and current kernel for each other

Change-Id: I40935ec355ee1f82c6d1b9135440dc7dac82023a
fs/super.c: sync ro remount after blocking writers

Move sync_filesystem() after sb_prepare_remount_readonly().  If writers
sneak in anywhere from sync_filesystem() to sb_prepare_remount_readonly()
it can cause inodes to be dirtied and writeback to occur well after
sys_mount() has completely successfully.

This was spotted by corrupted ubifs filesystems on reboot, but appears
that it can cause issues with any filesystem using writeback.

CRs-Fixed: 627559
Change-Id: Ib417b59d39210aab2de4e5ae48b18129e8bc3e26
Cc: Artem Bityutskiy <dedekind1@gmail.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
CC: Richard Weinberger <richard@nod.at>
Co-authored-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Git-commit: 807612db2f9940b9fa6deaef054eb16d51bd3e00
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Drivers: staging: android: Lower the max allowed RAM for logger

Lowered RAM values to get more free RAM:

LOGGER_LOG_MAIN: 2048*1024 -> 64*1024
LOGGER_LOG_EVENTS: 256*1024 -> 32*1024
LOGGER_LOG_RADIO: 1024*1024 -> 32*1024
LOGGER_LOG_SYSTEM: 256*1024 -> 64*1024
LOGGER_LOG_SF: 256*1024 -> 64*1024
drivers/exfat: update to v1.2.5

Change-Id: I94f60a0df205619b50e38bdfdcdccf2bc9119f0a
Small optimizations
1. "STRLEN(path) == 0" -> "*path == '\0'"
2. remove unused variable
3. reduce FILE_ID_T structure size on 32-bit
 platform from 64 to 56 bytes

Change-Id: Iedc031ad4df4ccfb58faaa3fe40035053013cf3e
ksm: Provide support to use deferred timers for scanner thread

KSM thread to scan pages is getting schedule on definite timeout.
That wakes up CPU from idle state and hence may affect the power
consumption. Provide an optional support to use deferred timer
which suites low-power use-cases.

To enable deferred timers,
$ echo 1 > /sys/kernel/mm/ksm/deferred_timer

Change-Id: I07fe199f97fe1f72f9a9e1b0b757a3ac533719e8
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
ksm: enable deferred timer

Change-Id: I3e4745206a1333fb67e0473573cc44d78c1895c7
dbx500-cpufreq: Reduce cpufreq setting latancy

Signed-off-by: cocafe <cocafehj@gmail.com>
s6e63m0: Various changes

Signed-off-by: cocafe <cocafehj@gmail.com>
s6e63m0: Add night mode and sunlight mode

Darker than illumination = 1;
Brighter than maximum brightness in system UI.

And here are some opinions about the gamma table: (Not 100% correct)

[03]		0X18	(Main Color)		(R)
[05]		0X08	(Main Color)		(G)
[07]		0X24	(Main Color)		(B)

[09]		0XDC	(Tint Medium)		(R)
[11]		0XDD	(Tint Medium)		(G)
[13]		0XD0	(Tint Medium)		(B)

[15]		0XB5	(Tint Hard)		(R)
[17]		0XB5	(Tint Hard)		(G)
[19]		0XB6	(Tint Hard)		(B)

[21]		0X7F	(Tint Low)		(R)
[23]		0X8D	(Tine Low)		(G)
[25]		0X63	(Tine Low)		(B)

[27]		0XC5	(Brightness)		(R)
[29]		0XC8	(Brightness)		(G)
[31]		0XBA	(Brightness)		(B)

[33]		0X00	(Lighter? 0/1)		(R)
[35]		0X04	(Backlight)		(R)
[37]		0X00	(Lighter? 0/1)		(G)
[39]		0X01	(Backlight)		(G)
[41]		0X00	(Lighter? 0/1)		(B)
[43]		0X0E	(Backlight)		(B)

Signed-off-by: cocafe <cocafehj@gmail.com>
fix typo, brihtness -> brightness
abb-fg: Fix missing poweroff_threshold interface

Thanks zwliew@Gtihub

Signed-off-by: cocafe <136279202@qq.com>