Add SIO and FIOPS i/o schedulers

Change-Id: I45acc23ae0916a279f29b598754471d8f6313d45
hammerhead: add slim govenor

thanks a ton to flar2 where this govenor is based on. Small modifications done
and more will follow in future.

ToDo: we need to set the govenor as default as well other small modifications
to ramdisk

Change-Id: Ia7ea6714715103a24e0bbbddcff9e1d0e0771380
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Slim: Change 2 phase name

* To avoid conflict

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Slim: Fix one more

Change-Id: Ia0c7dcb4fce8c99623f69b012c7809ceb2535d6e
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Add backlight dimmer option

This is based on n5dim by @mzhou  https://github.com/mzhou/n5dim

Change-Id: Ie0cb3b68ba3abbf68a37ca7cb24dcd585eab3052
Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
More gradual levels for backlight dimmer mod (based on @mzhou module)

Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
Backlight dimmer mod: more gradual transitions

Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
backlight: fix a bug where the screen would be completely dark or near darkness with backlight_dimmer enabled when the display dimmed. The brightness level can't be any lower than dev->min_brightness and previous code allowed that to happen, so fix it.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
backlight: clean the code.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
backlight: add minimum backlight brightness module param.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
backlight: scale max current when the brightness level is below 15 instead of using always 0.

Change-Id: I2614c161ec12d1c3dd10ba989aec9b0e97842b4c
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
msm8974: oc to 2534.4Mhz & uc to 96Mhz

Change-Id: I0cd65abe9024323c9ceed09e3de7f113f1189a49
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Fix Kconfig derp with adding Slim back in

Change-Id: I100a81c0c56602118c344fe76f7d84ad7ea174a7
msm: kgsl: Do not detect faults when GPU core is idle

Do not detect GPU faults when GPU hardware status is idle,
this leads to incorrect fault detection.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

Conflicts:
	drivers/gpu/msm/adreno.h

Change-Id: I7a9f8c49eb819241698f99fd50aaed400aadd4f4
Signed-off-by: Tarun Karra <tkarra@codeaurora.org>
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
(cherry picked from commit 8002a0061d3ccfeccb93af50bce4ef44977845af)
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm8974: Drop GPU Min to 100 MHz

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Revert "msm8974: GPU OC to 650 MHz"

This reverts commit fe189e1787a367c2f9aa3bdcb7f162628b15441c.

Change-Id: I19ac8ae3444d1799e14a99fdf2844ed538103335