mmc/core: set use_spi_crc to 0

Disabled it for better performance

Change-Id: I1a21b5f790ca3e9e7b0925e89294792fd881163a
Signed-off-by: zwliew <zhaoweiliew@gmail.com>
mmc/core: fix permissions of use_spi_crc

Change-Id: I0982fb16373239f76385cf45aa896c2226add8e1
Signed-off-by: zwliew <zhaoweiliew@gmail.com>
fsync: set fsync_mode to 2

Enable dynamic fsync for better performance while still reasonably well stability

Change-Id: I8118af0c507bc64c2959728415c4030297d5121f
Signed-off-by: zwliew <zhaoweiliew@gmail.com>
abb-codec: Format messages style

I like to make everything neat.

Signed-off-by: cocafe <cocafehj@gmail.com>
Signed-off-by: zwliew <zhaoweiliew@gmail.com>
abb-codec: Fix typo
Signed-off-by: cocafe <cocafehj@gmail.com>

Signed-off-by: zwliew <zhaoweiliew@gmail.com>
abb-codec: Adjust MIC booster level +15dB -> +6dB

Too noisy with +15dB.

Signed-off-by: cocafe <cocafehj@gmail.com>
Signed-off-by: zwliew <zhaoweiliew@gmail.com>
abb-codec: ABBamp 2.4.5

Normally, we use "mute all sound" in system settings to disable all sound.

But the earpiece is also disabled, when a call comes, it will take us several seconds to enable sound in settings.

So I add a interface to disable speaker ONLY.

I think it's for me at least.

What's more, this update edits some messages and fixed some bugs.

Check the previous commits.

Signed-off-by: cocafe <cocafehj@gmail.com>
Signed-off-by: zwliew <zhaoweiliew@gmail.com>
Revert "backport and use google interactive governor (marcin1147)"

This reverts commit 4e989a735274c374018d26411a457f835c9c1efa.

Signed-off-by: zwliew <zhaoweiliew@gmail.com>

Conflicts:
	arch/arm/configs/cyanogenmod_i8160_defconfig

Change-Id: Iaa10b5aa165927e5dca6abcf55d6cdac1ea1569f
cpufreq interactive governor: event tracing

Change-Id: Ic13614a3da2faa2d4bd215ca3eb7191614f0cf66
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: zwliew <zhaoweiliew@gmail.com>
cpufreq: interactive: apply intermediate load to max speed not current

Evaluate spikes in load (below go_hispeed_load) against the maximum
speed supported by the device, not the current speed (which tends to
make it too difficult to raise speed to intermediate levels until
very busy).

Change-Id: Ib937006abf8bedb60891a739acd733e89b732ae0
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: zwliew <zhaoweiliew@gmail.com>
cpufreq: interactive: set at least hispeed when above hispeed load

If load is above go_hispeed_load, always go to at least hispeed_freq,
even when reducing speed from a higher speed, not just when jumping
up from minimum speed.  Avoids running at a lower than intended
speed after a burst of even higher load.

Change-Id: I5b9d2a15ba25ce609b21bac7c724265cf6838dee
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: zwliew <zhaoweiliew@gmail.com>
cpufreq: interactive: don't drop speed if recently at higher load

Apply min_sample_time to the last time the current target speed
was originally requested or re-validated as appropriate for the
current load, not to the time since the current speed was
originally set.  Avoids periodic dips in speed during bursty
loads.

Change-Id: I250bda657985de60373f9897cc41f480664d51a1
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: zwliew <zhaoweiliew@gmail.com>
cpufreq: interactive: configurable delay before raising above hispeed

Change-Id: I4d6ac40b23a3790d48e30c37408284e9f955e8fa
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: zwliew <zhaoweiliew@gmail.com>
cpufreq: interactive: adjust code and documentation to match

Change-Id: If59c668d514a29febe5c35404fd9d01df8548eb1
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: zwliew <zhaoweiliew@gmail.com>
cpufreq: interactive: based hispeed bump on target freq, not actual

For systems that set a common speed for all CPUs, checking current
speed here could bypass the intermediate hispeed bump decision for
this CPU when another CPU was already at hispeed.  This could
result in an overly high setting (for all CPUs) in situations
where all CPUs were about to drop to load levels that map to
hispeed or below.

Change-Id: I186f23dcfc5e2b6336cab8b0327f0c8a9a4482bc
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: zwliew <zhaoweiliew@gmail.com>
cpufreq: Separate speed target revalidate time and initial set time

Allow speed drop after min_sample_time elapses from last time
the current speed was last re-validated as appropriate for
current load / input boost.

Allow speed bump after min_sample_time (or above_hispeed_delay)
elapses from the time the current speed was originally set.

Change-Id: Ic25687a7a53d25e6544c30c47d7ab6f27a47bee8
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: zwliew <zhaoweiliew@gmail.com>
cpufreq: interactive: Boost frequency on touchscreen input

Based on previous patches by Tero Kristo <tero.kristo@nokia.com>,
Brian Steuer <bsteuer@codeaurora.org>,
David Ng <dave@codeaurora.org>,
Antti P Miettinen <amiettinen@nvidia.com>, and
Thomas Renninger <trenn@suse.de>

Change-Id: Ic55fedcf6f9310f43a7022fb88e23b0392122769
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: zwliew <zhaoweiliew@gmail.com>
cpufreq: interactive: remove unused target_validate_time_in_idle

Change-Id: I37c5085b91318242612440dfd775ad762996612f
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: zwliew <zhaoweiliew@gmail.com>
cpufreq: interactive: Add sysfs boost interface for hints from userspace

The explicit hint on/off version.

Change-Id: Ibf62b6d45bf6fb8c9c055b9bdaf074ce9374c04f
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: zwliew <zhaoweiliew@gmail.com>
cpufreq: interactive: set floor for boosted speed

Allow speed to drop to flooor frequency but not below, don't pin
to speed at last boost.

Change-Id: I0147c2b7a2e61ba16820605af6baaf09570be787
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: zwliew <zhaoweiliew@gmail.com>