usb: gadget: android: use f_mtp instead of f_mtp_samsung
usb: gadget: adb: fix freeze on 'adb root'

Restore functions removed by Samsung
drivers: cpufreq: Send a uevent when governor changes

 * Useful so userspace tools can reconfigure.

Change-Id: Ib423910b8b9ac791ebe81a75bf399f58272f64f2
netfilter: xt_qtaguid: remove AID_* dependency for access control

qtaguid limits what can be done with /ctrl and /stats based on group
membership.
This changes removes AID_NET_BW_STATS and AID_NET_BW_ACCT, and picks
up the groups from the gid of the matching proc entry files.

Signed-off-by: JP Abgrall <jpa@google.com>
Change-Id: I42e477adde78a12ed5eb58fbc0b277cdaadb6f94
netfilter: xt_qtaguid: extend iface stat to report protocols

In the past the iface_stat_fmt would only show global bytes/packets
for the skb-based numbers.
For stall detection in userspace, distinguishing tcp vs other protocols
makes it easier.
Now we report
  ifname total_skb_rx_bytes total_skb_rx_packets total_skb_tx_bytes
  total_skb_tx_packets {rx,tx}_{tcp,udp,ohter}_{bytes,packets}

Bug: 6818637
Signed-off-by: JP Abgrall <jpa@google.com>
netfilter: xt_qtaguid: Allow tracking loopback

In the past it would always ignore interfaces with loopback addresses.
Now we just treat them like any other.
This also helps with writing tests that check for the presence
of the qtaguid module.

Signed-off-by: JP Abgrall <jpa@google.com>
netfilter: qtaguid: rate limit some of the printks

Some of the printks are in the packet handling path.
We now ratelimit the very unlikely errors to avoid
kmsg spamming.

Signed-off-by: JP Abgrall <jpa@google.com>
add extra free kbytes tunable

Add a userspace visible knob to tell the VM to keep an extra amount
of memory free, by increasing the gap between each zone's min and
low watermarks.

This is useful for realtime applications that call system
calls and have a bound on the number of allocations that happen
in any short time period.  In this application, extra_free_kbytes
would be left at an amount equal to or larger than than the
maximum number of allocations that happen in any burst.

It may also be useful to reduce the memory use of virtual
machines (temporarily?), in a way that does not cause memory
fragmentation like ballooning does.

[ccross]
Revived for use on old kernels where no other solution exists.
The tunable will be removed on kernels that do better at avoiding
direct reclaim.

Change-Id: I765a42be8e964bfd3e2886d1ca85a29d60c3bb3e
Signed-off-by: Rik van Riel<riel@redhat.com>
Signed-off-by: Colin Cross <ccross@android.com>
bluetooth: bcmbt: lpm: fix polarity

Not sure why stock comes with wrong values, but this works

Change-Id: I10c098a72cc92beddc32542606740d354c35b3e6
net: wireless: bcmdhd: Enable p2p support bits for p2p device

Change-Id: I62102ead0e72be41d591f9562f3ac27c41b9e395
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Fix loading VoiceSolution module

The module's CRC doesn't match, but it works fine

Thanks to pawitp
defconfig: Enable SELinux
Enable some extra features

Thanks to pawitp
Squashed update to 3.0.101

It's EOL, so might as well update to the latest version.

The following commits were already backported by Samsung/Broadcom:
	8eac4364548b8f53476602969a2fba65d029d8b7
	ab55458eb0cc7f0f23e38ed41828e9b5a5372134
	866cd76c93e668389a8edb4eece7b900ac386b5e
	5c025e811fe6514200f7adf94e1861a56f73eb6b
	7948bfddbe1bbfe7d25b6a269d1c1d264cf52768
	09e4ad5aa68deaebac4e9d2831624e5ca33a439d
	03a850de03bfed25270d20918ee02d9f0dbb1f21
	a6c0070c1f5a6c7b0bba5bb5be44b1dabe88af56
	7c558b7eb837ca7bc014af2f5509be143c3c3670
	456edf57d7a6fe1b238ec708b19063d78cf4b250
	a214998c48e204227d52a81dd459ea51a8a9ae36
	2f3dc85d233fce3345eb1880ec44349d7b290211
	58793e9b6ba06d22ce9cf444d190568157c858c9
	d1877392b4dce5d4c74d329777980d2a3ccede99
	964b12560e1d50f31bc1cc0ac662d52bdbdb6f40
	e12fcd38abe8a869cbabd77724008f1cf812a3e7
	d1a01d18320e37367e23f006f0dfbd74ff32de68
	801bdd926b6229da233f6db25770c9e817f98d4e
	fe979e2c0aa6e5b9157c3b381b43de2ca6965d7e
	cc3c85dfa1a7e8d32c6e625176269f9dff88447d
	929b30b9d3f530900c6e3176b1cf29fbcf307e25
	f665a680f89357a6773fb97684690c76933888f6
	3f6ea7b4b5adbb6ee9271d48dd63dd98645e505b
	42cd41128edb092f9ae6fe89dbb5456963568602

The following commits were backed out due to conflicts with
Samsung/Broadcom modifications:
	0e69b54fa8b48e3cdc1a78f77beab3af763a33a1
	a7e32d7a2a801b7838b4159e9d73ea86f68ae002
	5e02dde6aee7c4492b3a62ad93e7f1120877a019
	19faec0520b3b16dfd58cde30938a3c4d3dcdd5b
	a15a3971cc49eefbde40b397a446c0fa9c5fed9c

Conflicts:
	kernel/cgroup.c
	kernel/signal.c
	mm/page_alloc.c
	net/core/netpoll.c
	scripts/Kbuild.include

Change-Id: I6b9bad7c18ff417e8b73a67f64b2d2c65e194c15
mm: page_alloc: fix 3.0.101 upgrade

The signature of migrate_pages was changed, so we need to also
change Samsung/Broadcom's added call.

Change-Id: I99b703f09f5e9878cd35177d79d4400613a72d61
capri: add 1.3 Ghz OC (optional)

Basic benchmark with "CPU Benchmark" application shows marginal
improvement for 1.3 GHz, with performance degradation for higher
frequencies.

The default setting sets the max frequency to 1.2 GHz (OC disabled
by default).

Benchmark result (in milliseconds)

1.2 GHz: 565 561 558 568 573 (avg: 565)
1.3 GHz: 551 550 548 544 548 (avg: 548)
1.4 GHz: 561 563 540 541 557 (avg: 552)
1.5 GHz: 556 563 566 560 564 (avg: 561)

Application: https://play.google.com/store/apps/details?id=com.unstableapps.cpubenchmark

Change-Id: I026c0727022f2db5d986780ac1fa441f1efa3964
Fix vibration

Also:
- drv2603: disable timeout restrictions (fix haptic feedback)
- drv2603: customisable vibration density

Many thanks to Cool Development