backlight: set minimum brightness to 1

minimum brightness is 10 by default, which can be pretty bright at night. allow it to be set below 10, with 1 being the default.

Change-Id: Ia8d90b257be95bae01c5f4b38c545f74b519f0ef
cpufreq: interactive: Honor changed minimum frequency

This saves a few cycles in the timer routine.

Change-Id: I732a20e96ed1d3aa64da82961f5cd95ea47576da
cpufreq: interactive: Use parts of native boost routine

Not all governors are created equal. Set boostpulse_endtime
and floor_freq to smoothen the timer routine.
cpufreq: interactive: Use frequency dependent per cpu timings

This allows in-depth testing of the timer routine.

Change-Id: Iee608ec2a816b2e5cf3fa02afcdd9d396e560871
cpufreq: interactive: Honor boosted state when entering idle

The old logic didn't take the boosted state in account. Just
leave the comment intact because our temporary min is not
the regular policy->min it refers to.
Revert "bcmdhd: Filter multicast packages when suspended"

This reverts commit 4580a4385bc9c79f3af421371a417060a9b4de98.

this causes wlan_rx_wake wakelocks on dynamic ips.
minor cleanup

Change-Id: I891e73f8fe0616b2a69657cfbd9ac034f96ab97a
cpufreq: interactive: simplify suspend hotplugging

Change-Id: I909e4103ff53a42f22d41680dccb073662b6e5bc
cpufreq: interactive: Move definition of cpufreq_gov_interactive downwards

This moves definition of cpufreq_gov_interactive towards the bottom of file, so
that we don't have to add prototype of cpufreq_governor_interactive() in the
beginning of file.

Change-Id: I04bd1004954eb36502c5cd7e35d3d7274cddaf95

[also tidied up abit]
lib/checksum.c: optimize do_csum a bit

Reduce the number of variables modified by the loop in do_csum() by 1,
which seems like a good idea.  On Nios II (a RISC CPU with 3-operand
instruction set) it reduces the loop from 7 to 6 instructions, including
the conditional branch.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
AIO: Don't plug the I/O queue in do_io_submit() Asynchronous I/O latency to a solid-state disk greatly increased between the 2.6.32 and 3.0 kernels. By removing the plug from do_io_submit(), we observed a 34% improvement in the I/O latency.

Unfortunately, at this level, we don't know if the request is to
a rotating disk or not.

Change-Id: I7101df956473ed9fd5dcff18e473dd93b688a5c1
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Cc: linux-aio@kvack.org
Cc: Chris Mason <chris.mason@oracle.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jeff Moyer <jmoyer@redhat.com>
Revert "Added fsync_control [Cocafe]"

going to try out async fsync
This reverts commit ea9bdcc1921d882669301aa481de081c3a87864b.
fsync: adapt async fsync

Change-Id: Ib0626a2ee5fbe1a3ccad4b4d003ac8b216e00f4b
bln: allow separate configuration of blink on and off delays

also minor optimisation of bln_blink_mode check

devicesettings: need the appropriate modifications
Change-Id: I9930a42907ab3ef90a85dd065193f5b696b7c061
dt2w: decrease press timeout by 1/2
500ms timeout is pretty long, decrease to near instantaneous humane taps

devicesettings: need the appropriate modifications
Change-Id: I1920d8d7951c1353b1252e6ce90e3bca3bbac186
cpufreq: Add cpu utilization statistics to aid decisions made by userspace.

Understanding system load as seen by cpufreq can help userspace
algorithms make better decisions to improve system responsiveness.
One such example would be the MP decision algorithm which mines
various system info to make decisions on hotplugging in/out
the additional cores.

Change-Id: I277db7e1a7803a3822b61e7befa25131487cfe17
Signed-off-by: Anitha Anand <anithas@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

adapt for interactive governor
cpufreq: Make down_differential parameter configurable.

The down_differential parameter determines the down threshold for
the governor to scale down the frequency and when made configurable
provides for a variable operating range for the governor.

Usage:
cat /sys/devices/system/cpu/cpu0/cpufreq/ondemand/down_differential
echo 30 >
/sys/devices/system/cpu/cpu0/cpufreq/ondemand/down_differential

Change-Id: Ice94b8ae961aa3df7f9582c2af2275414931faed
Signed-off-by: Brian Steuer <bsteuer@codeaurora.org>
ondemand: Add support to consider other cpu load when scaling frequencies

Currently only current cpu load is considered when frequency scaling.
As a side effect of this when scheduler migrates a thread to a slower
core, the execution time increases unexpectedly.

The new algorithm not only considers current cpu load for frequency
scaling, but also takes into account load of other online cpus. The
treshold for this can be controlled using up_threshold_any_cpu_load.
When the up_threshold_any_cpu_load is crossed in any cpu then the
current cpu is set to sync_freq.

Also, when more than one cpu is online a two step ramp-up mechanism
is used. When the up_threshold_multi_core is crossed the cpu is ramped
up to optimal_freq which is less than policy->max and set to a power
friendly value.

Change-Id: I64bed1b142cde1f239e73aa1f78981c78aaf59ce
Signed-off-by: Narayanan Gopalakrishnan <nargop@codeaurora.org>

Conflicts:
	drivers/cpufreq/cpufreq_ondemand.c
cpufreq: Fix optimal_freq logic on ramp down

When ondemand governor decides to ramp down the frequency, the missing
check for frequency being lower than optimal_freq was causing frequency
to be ramped down to optimal_freq even if the frequency decided by ondemand
governor was higher.

Change-Id: I00f9ae4c61ccda4039f3338dee2c29b8cb790be4
Signed-off-by: Veena Sambasivan <veenas@codeaurora.org>
Revert "nothing here move along"

This reverts commit abe2262db65ad9d15a7ac9e81cae9a53efe6bc6b.