defconfig: log L1 cache errors

Signed-off-by: Dan Trifan <jimsth@gmail.com>
Input: Send events one packet at a time

On heavy event loads, such as a multitouch driver, the irqsoff latency
can be as high as 250 us.  By accumulating a frame worth of data
before passing it on, the latency can be dramatically reduced.  As a
side effect, the special EV_SYN handling can be removed, since the
frame is now atomic.

This patch adds the events() handler callback and uses it if it
exists. The latency is improved by 50 us even without the callback.

Change-Id: Iebd9b1868ae6300a922a45b6d104e7c2b38e4cf5
Cc: Daniel Kurtz <djkurtz@chromium.org>
Tested-by: Benjamin Tissoires <benjamin.tissoires@enac.fr>
Tested-by: Ping Cheng <pingc@wacom.com>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>

Input: Improve the events-per-packet estimate

The events-per-packet estimate has so far been used by MT devices
only. This patch adjusts the packet buffer size to also accomodate the
KEY and MSC events.  Keyboards normally send one or two keys at a
time. MT devices normally send a number of button keys along with the
MT information.  The buffer size chosen here covers those cases, and
matches the default buffer size in evdev. Since the input estimate is
now preferred, remove the special input-mt estimate.

Reviewed-and-tested-by: Ping Cheng <pingc@wacom.com>
Tested-by: Benjamin Tissoires <benjamin.tissoires@enac.fr>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
defconfig: set proper CPU min/max speeds

Signed-off-by: Dan Trifan <jimsth@gmail.com>
net: loopback: set default mtu to 64K

loopback current mtu of 16436 bytes allows no more than 3 MSS TCP
segments per frame, or 48 Kbytes. Changing mtu to 64K allows TCP
stack to build large frames and significantly reduces stack overhead.

Performance boost on bulk TCP transferts can be up to 30 %, partly
because we now have one ACK message for two 64KB segments, and a lower
probability of hitting /proc/sys/net/ipv4/tcp_reordering default limit.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
arm/dt: msm8974: Lower GPU voltage constraints

Signed-off-by: Dan Trifan <jimsth@gmail.com>
PM: devfreq: Fix simple_ondemand crashing on startup

Signed-off-by: Dan Trifan <jimsth@gmail.com>
PM: devfreq: Add sysfs nodes for devfreq governors

Signed-off-by: Dan Trifan <jimsth@gmail.com>
PM: devfreq: Move governor node to gpufreq

Final path is: /sys/class/devfreq/fdb00000.qcom,kgsl-3d0/gpufreq

Signed-off-by: Dan Trifan <jimsth@gmail.com>
PM: devfreq: Fix show available freqs

Signed-off-by: Dan Trifan <jimsth@gmail.com>
PM: devfreq: Add conservative governor

A GPU governor is not rocket science. This one gets the job done pretty
smoothly while complying with devfreq framework rules.

Signed-off-by: Dan Trifan <jimsth@gmail.com>
PM: devfreq: Add some conservativeness

Signed-off-by: Dan Trifan <jimsth@gmail.com>
PM: devfreq: Always reflect a change of polling interval

Signed-off-by: Dan Trifan <jimsth@gmail.com>
msm: hotplug: Add MSM Hotplug driver

msm: hotplug: Add basic hotplug driver file template
msm: hotplug: Get CPU load statistics
msm: hotplug: Print messages only with debug flag set
msm: hotplug: Stop the hotplug workqueue during suspend
msm: hotplug: Limit CPU freq to 702MHz dring suspend
msm: hotplug: Add spin lock to load stats function
msm: hotplug: Add simple hotplug logic
msm: hotplug: Add touchboost to hotplug function
msm: hotplug: Increase hotplug update rate
msm: hotplug: Add minimum uptime after hotplug
msm: hotplug: Handle cpu on- and offlining
msm: hotplug: Set down lock atomically
msm: hotplug: Add sysfs
msm: hotplug: Set target number of cpus based on current load
msm: hotplug: Offline/online cpus upon early suspend/late resume
msm: hotplug: Make history size adjustable from userspace
msm: hotplug: Fix typo to satisfy compiler
msm: hotplug: Add options for number of min/max/boost cpus
msm: hotplug: Add MSM Hotplug driver
msm: hotplug: Max 1036MHz during screen off
msm: hotplug: Remove spinlock in load stats
It's too expensive and not nessecary.
msm: hotplug: Stop hotplug work a tad later
msm: hotplug: Protect suspend operations by mutex
Revert "msm: hotplug: Protect suspend operations by mutex"
This reverts commit 7a879c677475f302ef8b1581d363b0fe676f9a11.
msm: hotplug: Schedule suspend/resume work
Dennis is right, this is the proper way to suspend and resume.
hammerhead: touch: Remove touch boost
Revert "cpufreq: conservative: Boost all online cpus"
This reverts commit 3d2675da0500e4e9cd94de66f657790ca5e26467.
Revert "hammerhead: touch: Simple method of boosting cpu frequency on touch"
This reverts commit 2f25573cc2924e62d222f4fbd7a976121858dce2.
msm: hotplug: Increase down lock duration and sanitize
msm: hotplug: Use high-priority workqueue
msm: hotplug: Add input boost handler
Add an input handler to hotplug additional cpus. Down lock will
take care of keeping the cpu boosted.
msm: hotplug: Add minimum interval for input boost
msm: hotplug: Remove deprecated msm_cpufreq_set_freq_limits

Signed-off-by: Dan Trifan <jimsth@gmail.com>