Enable compile with CM tree
usb: gadget: android: use f_mtp instead of f_mtp_samsung
mmc: card: Skip secure erase on MoviNAND; causes unrecoverable corruption.

For several MoviNAND eMMC parts, there are known issues with secure
erase and secure trim.  For these specific MoviNAND devices, we skip
these operations.

Specifically, there is a bug in the eMMC firmware that causes
unrecoverable corruption when the MMC is erased with MMC_CAP_ERASE
enabled.

References:

http://forum.xda-developers.com/showthread.php?t=1644364
https://plus.google.com/111398485184813224730/posts/21pTYfTsCkB#111398485184813224730/posts/21pTYfTsCkB

Signed-off-by: Ian Chen <ian.cy.chen@samsung.com>
Reviewed-by: Namjae Jeon <linkinjeon@gmail.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Cc: stable <stable@vger.kernel.org> [3.0+]
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers: cpufreq: Send a uevent when governor changes

 * Useful so userspace tools can reconfigure.

Change-Id: Ib423910b8b9ac791ebe81a75bf399f58272f64f2
bluetooth: bcmbt: lpm: fix polarity and compile error
i9082: defconfig: use btlpm to support bluedroid

BlueDroid on 4.2 does not use HCI and cannot use the same power
management as BlueZ
perf: Treat attr.config as u64 in perf_swevent_init()

Trinity discovered that we fail to check all 64 bits of
attr.config passed by user space, resulting to out-of-bounds
access of the perf_swevent_enabled array in
sw_perf_event_destroy().

Introduced in commit b0a873ebb ("perf: Register PMU
implementations").

Signed-off-by: Tommi Rantala <tt.rantala@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: davej@redhat.com
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Link: http://lkml.kernel.org/r/1365882554-30259-1-git-send-email-tt.rantala@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
usb: gadget: adb: fix freeze on 'adb root'

Restore functions removed by Samsung
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>
i9082: defconfig: enable SELinux

Change-Id: Ib8ae1803a4144ff07b256cb9c096330230894f0f
Update from GT-I9082_SEA_JB_Opensource_Update1.zip

Change-Id: Ibdc0515f222f71d28fa4870287104cd9e676fab5
i9082: fix loading VoiceSolution

The module crc don't match, but they work fine

Change-Id: I0ef02cd33da782629951549644aef2bd2d3b0791
bluetooth: bcmbt: lpm: fix polarity

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

Change-Id: I10c098a72cc92beddc32542606740d354c35b3e6
cyttsp4_mt_common: disable log spam

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

Change-Id: I62102ead0e72be41d591f9562f3ac27c41b9e395
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
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