xt_IDLETIMER: Add new netlink msg type for IDLETIMER.

Send notifications when the label becomes active after an idle period.
Send netlink message notifications in addition to sysfs notifications.

Change-Id: I31677ef00c94b5f82c8457e5bf9e5e584c23c523
Signed-off-by: Ashish Sharma <ashishsharma@google.com>
Signed-off-by: netchip <netchip@netchip-archer.localdomain>
boot: Enable XZ compression

Signed-off-by: netchip <netchip@netchip-archer.localdomain>
XZ: Gain 70 kilobytes and (maybe) get rid of half a second

Kernel is 4.1 MB including everything, so who cares.

Signed-off-by: netchip <netchip@netchip-archer.localdomain>
cpufreq interactive governor: event tracing

Change-Id: Ic13614a3da2faa2d4bd215ca3eb7191614f0cf66
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: netchip <netchip@netchip-archer.localdomain>
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: netchip <netchip@netchip-archer.localdomain>
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: netchip <netchip@netchip-archer.localdomain>
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: netchip <netchip@netchip-archer.localdomain>
cpufreq: interactive: Remove redundant include

Signed-off-by: netchip <netchip@netchip-archer.localdomain>
Fix most compiler warnings

Linaro gcc 4.6.3 12.03. If interested, read https://lkml.org/lkml/2011/7/25/331.

Signed-off-by: netchip <netchip@netchip-archer.localdomain>
ARM: clean up idle handlers

Let's factor out the need_resched() check instead of having it duplicated
in every pm_idle implementations to avoid inconsistencies (omap2_pm_idle
is missing it already).

The forceful re-enablement of IRQs after pm_idle has returned can go.
The warning certainly doesn't trigger for existing users.

To get rid of the pm_idle calling convention oddity, let's introduce
arm_pm_idle() allowing for the local_irq_enable() to be factored out
from SOC specific implementations. The default pm_idle function becomes
a wrapper for arm_pm_idle and it takes care of enabling IRQs closer to
where they are initially disabled.

And finally move the comment explaining the reason for that turning off
of IRQs to a more proper location.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-and-tested-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: netchip <netchip@netchip-archer.localdomain>
ARM: substitute arch_idle(), remove system.h

Maybe a little bit too much effort for one less compiler warning.

Signed-off-by: netchip <netchip@netchip-archer.localdomain>
net: wireless: bcmdhd: Daemonize wl_event_handler

Daemonizing makes thread (besides other things) NON-FREEZABLE, and it will not
get fake signal on suspend to quicl down_interruptible()

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Signed-off-by: netchip <netchip@netchip-archer.localdomain>
net: wireless: bcmdhd: Fix improper band handling

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Signed-off-by: netchip <netchip@netchip-archer.localdomain>
cpufreq: ondemand: Use screen-off profile with relaxed settings

Screen-off values will be made adjustable later.

Signed-off-by: netchip <netchip@netchip-archer.localdomain>
move inline struct to the unit where it should be (to fix compiler error with latest linaro toolchain)

Signed-off-by: netchip <netchip@netchip-archer.localdomain>
Fix compiler warnings introduced with gcc 4.7

Signed-off-by: netchip <netchip@netchip-archer.localdomain>
Update sampling rate ratios

Signed-off-by: netchip <netchip@netchip-archer.localdomain>
cpufreq: ondemand: Add responsiveness at lower frequencies

A feature from pegasusq. Default values look good but will
be made adjustable later.

Signed-off-by: netchip <netchip@netchip-archer.localdomain>
cpufreq: ondemand: Make screen-off values adjustable

Signed-off-by: netchip <netchip@netchip-archer.localdomain>
cpufreq: ondemand: Mak responsiveness values adjustable

Signed-off-by: netchip <netchip@netchip-archer.localdomain>