HACK: ARM: disable sleeping while atomic warning in do_signal

ARM disables interrupts in do_signal, which triggers a warning in
try_to_freeze, see details at https://lkml.org/lkml/2011/8/23/221.
To prevent the warnings, add try_to_freeze_nowarn and call it from
do_signal.

Change-Id: If7482de21c386adc705fa1ac4ecb8c7ece5bb356
Signed-off-by: Colin Cross <ccross@android.com>
net: wireless: bcmdhd: Update to Version 1.28.9-2

Change-Id: Ifd55ef8645a7cf613bcbd1f5ea3a71fe249a96ac
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net: wireless: bcmdhd: Remove WL_CFG80211_SYNC_GON option

Change-Id: Iee0f977c6d4d5339e83b713740b7e8700e135008
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
ARM: disable preemption in machine_shutdown

Since the smp call to stop the other cpus are handled in those
cpus in interrupt context, there's a potential for those smp
handlers to interrupt threads holding spin locks (such as the
one a mutex holds).  This prevents those threads from ever
releasing their spin lock, so if the cpu doing the shutdown
is allowed to switch to another thread that tries to grab the
same lock/mutex, we could get into a deadlock (the spin lock
call is called with preemption disabled in the mutex lock code).

To avoid that possibility, disable preemption before doing the
smp_send_stop().

Change-Id: I7976c5382d7173fcb3cd14da8cc5083d442b2544
Signed-off-by: Mike J. Chen <mjchen@google.com>
sync: change wait timeout to mirror poll semantics

Change-Id: Ib38e6d339d41885a33027752690d65a52b6897f6
Signed-off-by: Erik Gilling <konkers@android.com>
sync: fix erase-o in sync_fence_wait

Change-Id: I189707cf658a9f1f2943515c891b43961994e774
Signed-off-by: Erik Gilling <konkers@android.com>
gpu: ion: Switch to using kmalloc rather than kmap during allocation

Previously, metadata was stored in the allocated pages themselves
during allocation.  However the system can only have a limited
number of kmapped pages.  A very large allocation might exceed
this limit.

Change-Id: Ibe972096e83924bf5e621d8282c4cd133ca75b0a
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>

Conflicts:
	drivers/gpu/ion/ion_system_heap.c
net: wireless: bcmdhd: Remove WIPHY_FLAG_SUPPORTS_FW_ROAM flag

If driver advertises FW_ROAM, the supplicant wouldn't send
the BSSID & Freq in the connect command allowing the driver
to choose the AP to connect to. But unless we support ROAM_CACHE
in firware this will delay the ASSOC as the FW need to do a full
scan before attempting to connect.

Change-Id: Iebc88a60243196b9ad27b8302f2b1473710308f6
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
power: android-battery: Provide fake values when fuel gauge missing

Avoid shutdown due to battery capacity or temperature out of range.

Change-Id: I54abe4dc54bf2fb8a9b972a3940e6fd93cc60473
Signed-off-by: Todd Poynor <toddpoynor@google.com>
power: android-battery: Add USB and AC battery power supplies

For reflecting board-level decisions on whether USB or AC charger
is connected, which may differ from charger power supply notion
of USB input path (which may be connected to an AC charger) vs.
AC input path.

Change-Id: I9d2eb446db8b4d9496ba7ce1472d0e7a4d4e24ef
[toddpoynor@google.com: refactoring]
Signed-off-by: hongmin.son <hongmin.son@samsung.com>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
power: android-battery: use 1/10th deg C units for temperature

Same units as power_supply, don't need 1/10000 deg C and conversion
is error-prone.

Change-Id: I8cf146d2a7725df2dacc415daa66b2986b69f2a7
Signed-off-by: Todd Poynor <toddpoynor@google.com>
power: smb347: Add charge full detection via termination status

Also detect charge full via STAT_C register "at least one charging
cycle has terminated since charging first enabled" bit.

Keep track of charge done and report status Full or Not Charging
as appropriate.

[toddpoynor@google.com: update full status on termination current IRQ]
Change-Id: Ie872be771a4c0ec4b04489f96ddb750148d94946
Signed-off-by: hongmin.son <hongmin.son@samsung.com>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
power: smb347: move STAT interrupt code to h/w init function

STAT config may reset to default values on unplug, overwriting the
boot time setup.  Configure STAT interrupts on each re-init.

Change-Id: Iec82608ba9bbc87a646714e1d455ed497d084ed1
Reported-by: hongmin.son <hongmin.son@samsung.com>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
sync: clean up compiler warnings

Change-Id: I8a2ec5db652c61fd04571402067b37273b91e78f
Signed-off-by: Erik Gilling <konkers@android.com>
sync: dump sync state to console on timeout

Change-Id: I74bca6b4a2afa7ed5b1f5233c5165d2edddf269a
Signed-off-by: Erik Gilling <konkers@android.com>
power: smb347: Add Automatic recharge disable

Add automatic recharge disable selectable in platform data.

Change-Id: I155d639bfd9b0f6b7fe2d345aa9d249d409d19cb
Signed-off-by: hongmin.son <hongmin.son@samsung.com>
net: wireless: bcmdhd: Update to version 1.28.9-5

- Add cfg80211 del_station functionality
- Propagate disconnect error code for cfg80211

Change-Id: I0cf772f70323e9604da06d83340ff6cead07b84b
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
power: smb347: Allow disabling STAT interrupts

Allow STAT output to disable interrupt pulses and associated
configuration.  Can still use charging status output as an
interrupt if the irq_gpio is provided in platform data.

Based on code from hongmin.son <hongmin.son@samsung.com>

Change-Id: I036cd3c4b5b431f87d22c3a16a4ee0cecde432ce
Signed-off-by: hongmin.son <hongmin.son@samsung.com>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
power: smb347: reset charge full whenever charging restarted

Change-Id: Ibfc21bdee5c79467c25c608159f451c27e143f85
Signed-off-by: Todd Poynor <toddpoynor@google.com>
netfilter: xt_qtaguid: report only uid tags to non-privileged processes

In the past, a process could only see its own stats (uid-based summary,
and details).
Now we allow any process to see other UIDs uid-based stats, but still
hide the detailed stats.

Change-Id: I7666961ed244ac1d9359c339b048799e5db9facc
Signed-off-by: JP Abgrall <jpa@google.com>