Revert "msm: kgsl: Define PWRSCALE_POLICY_ATTR with a static scope"

This reverts commit 754e8f9dcd8ad7ab3ea259cd30123b1f8962592d.
Revert "msm: kgsl: conservative: Lindent, cleanup, adjust thresholds"

This reverts commit d80c0225905e4e1a54390548d4501af3f17e53fc.
Revert "kgsl: Implement conservative scaling policy"

This reverts commit 85a8ee85701bfa775c18f0d42902b9cc7387194a.
Revert "msm: kgsl: pwrscale functions should be run while GPU is ACTIVE"

This reverts commit 8178f38afd1370258a41c10e96e576eae8d28d0e.
Revert "msm: kgsl: Process all idle checks"

This reverts commit 334e00df59c361d37c197ffbfcf9f0036da13a8b.
Revert "msm: kgsl: Always set the active powerlevel when changing clock rates"

This reverts commit 61d7fc56ad4f1177c817698411a7f5d9ffe2a1fa.
Revert "msm: kgsl: Set requested power state to NONE after resume"

This reverts commit 331c7f4c5a1a99c3eb926307992632a10e64ed8b.
Revert "msm: kgsl: Add max and min power level controls in sysfs"

This reverts commit 593fca39c3183a541d16eb14a0c54b1f765dcda7.
Revert "msm: kgsl: Fix policy sysfs implementation"

This reverts commit 8dc69738b0da19d7a805315c154ae88dae544b5d.
KGSL: Add a simple GPU governor for Adreno xxx GPU series

initial coding for a Simple GPU governor based on my own work 2 years ago
from Sensation GB kernel commit: c1ea8f64167270d67915b4d4fb00910b1c0f513f

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
KGSL: make simple govenor a selectable option, co-exist with ondemand

also removed some hardcoded values

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
KGSL: simple governor: expose tunables to sysfs interface via module_param

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
KGSL: Simple Governor: fix minor logic issue

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
KGSL: Simple Governor: some styling changes, early returns instead of assigning a val and returning in the end of the function call and change the copyright/author from the middle of the file to the header.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
KGSL: Simple Governor: so I kinda butchered in a good way of course the original code from faux, but the simplicity is still here. Added an history so that we can track the average do that the frequency scaling is much more proporcional to the actual GPU load rather than having is ramp up every now and then due to spurious load spike. Also remove two useless ifs.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
config: Remove unused MEDIA_TUNER option

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
logger: Add sysfs interface to Enable / Disable Android Logger
- switching done via /sys/kernel/logger_mode interface
default is 0 (off)
Credits to AndiP for the code and to Wanam for cherry-pick
msm_mpdecision: adjust boost freq and time
ondemand: adjust UP_THRESHOLD & MIN_SAMPLE_RATE
scsi: Compile scsi_wait_scan in kernel

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>