cpufreq: tweaked conservative governor to be more responsive

Signed-off-by: garwedgess <garethwilliams21@gmail.com>
Signed-off-by: KaSt <k@ka.st>
drivers/cpufreq: tuned smartassv2

Signed-off-by: garwedgess <garethwilliams21@gmail.com>
Signed-off-by: KaSt <k@ka.st>
drivers/cpufreq: tuned virtuous and darkside

Signed-off-by: garwedgess <garethwilliams21@gmail.com>
Signed-off-by: KaSt <k@ka.st>
staging: Update Snappy and add arm specifics

Signed-off-by: CTCaer <ctcaer@gmail.com>
Signed-off-by: garwedgess <garethwilliams21@gmail.com>
Signed-off-by: KaSt <k@ka.st>
ARM: Stop irqsoff trace on return to user

If the irqsoff tracer is in use, stop tracing the interrupt disable
interval when returning to userspace.  Tracing userspace execution
time as interrupts disabled time is not helpful for kernel
performance analysis purposes.  Only do so if the irqsoff tracer
is enabled, to avoid overhead purely for lockdep, which doesn't
care.

Change-Id: I74cde7dd0c4c3a783af34e76bd4efc1f85315abe
Signed-off-by: Todd Poynor <toddpoynor@google.com>
(cherry picked from commit 20713df2d48712bab9b4d690fbf838c8f3fc3927)

Signed-off-by: nobodyAtall <tsogkas@ceid.upatras.gr>
Signed-off-by: garwedgess <garethwilliams21@gmail.com>
Signed-off-by: KaSt <k@ka.st>
Release 1.7Beta4 with USB Serial Driver
USB Serial as loadable Module
SmartassH3 changes
Ignore firmware
uksm: Ported Ultra-KSM 0.1.0
Experimental port for stock ICS semc-msm7x30 kernel.

This is an improvement upon KSM. Its features:
 1. Full system scan:
      It automatically scans all user processes' anonymous VMAs. Kernel-user
      interaction to submit a memory area to KSM is no longer needed.

 2. Rich area detection based on random sampling:
      It automatically detects rich areas containing abundant duplicated
      pages based on their randomly-sampled history. Rich areas are given
      a full scan speed. Poor areas are sampled at a reasonable speed with very
      low CPU consumption.

 3. Per-page scan speed improvement:
      A new hash algorithm(random_sample_hash) is proposed. Quite usually,
      it's enough to distinguish pages by hashing their partial content
      instead of full pages. This algorithm can automatically adapt to this
      situation. For the best case, only one 32-bit-word/page is needed to get
      the hash value for distinguishing pages. For the worst case, it's as fast
      as SuperFastHash.

 4. Thrashing area avoidance:
      Thrashing area(an VMA that has frequent Ksm page break-out) can be
      filtered out. My benchmark shows it's more efficient than KSM's per-page
      hash value based volatile page detection.

 5. Hash-value-based identical page detection:
      It no longer uses memcmp based page detection any more.

 6. Misc changes upon KSM:
      * It has a fully x86-opitmized memcmp dedicated for 4-byte-aligned page
        comparison. It's much faster than default C version on x86.
      * rmap_item now has an struct *page member to loosely cache a
        address-->page mapping, which reduces too much time-costly
        follow_page().
      * The VMA creation/exit procedures are hooked to let the Ultra KSM know.
      * try_to_merge_two_pages() now can revert a pte if it fails. No break_ksm
        is needed for this case.

Signed-off-by: CTCaer <ctcaer@gmail.com>
Signed-off-by: garwedgess <garethwilliams21@gmail.com>
uksm: Hack to fix inline compile error and disabled at boot

Signed-off-by: CTCaer <ctcaer@gmail.com>
Signed-off-by: garwedgess <garethwilliams21@gmail.com>
Signed-off-by: KaSt <k@ka.st>
uksm: Removed unimplemented remote bug reporting system

Signed-off-by: CTCaer <ctcaer@gmail.com>
Signed-off-by: garwedgess <garethwilliams21@gmail.com>
Signed-off-by: KaSt <k@ka.st>
uksm: Tunings for smartphone usage and relocate run default value

In smartphones we care about cpu usage spikes and battery consumption.
Lowered pages per scan and allowed uksm to sleep more after each scan.

Finally lowered priority of uksm daemon, for even smoother user experience

Signed-off-by: CTCaer <ctcaer@gmail.com>
Signed-off-by: garwedgess <garethwilliams21@gmail.com>
Signed-off-by: KaSt <k@ka.st>
mm: define PAGE_MAPPING_FLAGS
Signed-off-by: garwedgess <garethwilliams21@gmail.com>
SmartassH3 boost pulse support + fixed sysfs

Signed-off-by: KaSt <k@ka.st>
Underclock at 24/61 MHz + Fixes to swapfile
Undervolt LCD display, touch sensor proximity sensor & Wi-Fi

Signed-off-by: KaSt <k@ka.st>
Enable ipsec support for all configs
msm_rotator: Bulk update to 2.6.35

Signed-off-by: KaSt <k@ka.st>
msm: rotator: add downscale support in rotator

Rotator is capable of performing 1/2, 1/4 and 1/8 down scaling. Add
downscale_ratio parameter to provide support for this feature.

CRs-Fixed: 315874
Change-Id: I57dc3456ccc9bec2a125750b3e9909ffcbaf45f6
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
Signed-off-by: KaSt <k@ka.st>