Some changes to get it to compile correctly on personal PC
Reverted the ARCH and CROSS_COMPILE changes done, now use a bash script
Stupid bash to make faster for me
Added fsync on/off support.
Added optimized ARM RWSEM algorithm.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Couple more flags - building with -O2 now as well.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Changes to compile with GCC 4.7
Add ROW I/O Scheduler by Qualcomm.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
block: row: squash commits from codeaurora.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
block: row: Add some debug information on ROW queues

1. Add a counter for number of requests on queue.
2. Add function to print queues status (number requests
   currently on queue and number of already dispatched requests
   in current dispatch cycle).

Change-Id: I1e98b9ca33853e6e6a8ddc53240f6cd6981e6024
Signed-off-by: Tatyana Brokhman <tlinder@codeaurora.org>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
block: row: Insert dispatch_quantum into struct row_queue

There is really no point in keeping the dispatch quantum
of a queue outside of it. By inserting it to the row_queue
structure we spare extra level in accessing it.

Change-Id: Ic77571818b643e71f9aafbb2ca93d0a92158b199
Signed-off-by: Tatyana Brokhman <tlinder@codeaurora.org>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
block: row: fix sysfs functions - idle_time conversion

idle_time was updated to be stored in msec instead of jiffies.
So there is no need to convert the value when reading from user or
displaying the value to him.

Change-Id: I58e074b204e90a90536d32199ac668112966e9cf
Signed-off-by: Tatyana Brokhman <tlinder@codeaurora.org>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
block: row: Aggregate row_queue parameters to one structure

Each ROW queues has several parameters which default values are defined
in separate arrays. This patch aggregates all default values into one
array.
The values in question are:
 - is idling enabled for the queue
 - queue quantum
 - can the queue notify on urgent request

Change-Id: I3821b0a042542295069b340406a16b1000873ec6
Signed-off-by: Tatyana Brokhman <tlinder@codeaurora.org>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
msm: pm: Support for Krait Retention

Introduce a new low power state for Krait, retention.
This state will lower the voltage to the Krait core to
retention voltage in addition to clock gating. This state
will be in between WFI and Standalone power collapse in
terms of time overhead and power savings.

Change-Id: I6b1f0a0d2e4954a705a047fd4a07f4dd1fb3518a
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
(cherry picked from commit d27ca4a7526a890f9d2979acefda3561e49d2e66)

Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
(cherry picked from commit 3af7249c36ab53923fdf216df3b3ba2c7f847851)

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
final color config for pa 3.0

Change-Id: I18c901c2d77c77088c4e38977bf6d99c6d16de12
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
board: mako: display: customize the screen color values to my liking. Colors seem more deep (closer to an AMOLED) while keeping the blacks and greys in a decent level that doesn't turn the device screen too dark while using auto brightness or lower brightness %. Whites are much closer to the real white, which makes me very happy.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Add Gamma Control v1. Thanks to @paranoidandroid for researching what each gamma value changed so that I could build this interface. It enables the possibility of tweaking whites, mids, blacks, contrast, saturation, brightness and greys. This is a full GPL'ed code and easy to use for any user without any special mumbo jumbo.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Gamma Control: add Kconfig option for this interface. After changing the values the array is refreshed and gets rid of the necessity of screen off/on to apply the changes. Whites and Grays were mixed too, so thats fixed.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Gamma Control: fix mix between whites and grays.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Gamma Control V2: finish adding the #ifdef wrappers. Add sanity checks for contrast, saturation and brightness. Push version to 2.

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