Updated BFS to v0.413
 cgroup: fix cpuset permission check
The permission check code added by "cgroup: Add generic cgroup subsystem
permission checks" does not build and also leaves a variable uninitialized.
Fix it.

Change-Id: I8009d6315527725d45b20792b7cd74aedc9bff44
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Christian Bejram <christian.bejram@stericsson.com>
Add above_background_load function to allow stuff to happen only when
important stuff aint.
workqueue: add is_workqueue_empty() api
This is needed when you want to perform work in one worker thread
context but have a synchronization point in another thread context
where you need to know if all the works queued to the workqueue for
the worker thread have finished execution.

Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
(cherry picked from commit 4e507d0)

Change-Id: I147359d17dc7032a463baecd13de4a1ac6b11631
Signed-off-by: Sunil Joseph <sunilj@codeaurora.org>
PM: Back off suspend if repeated attempts fail
If 10 attempts to suspend either fail or immediately resume within
1 second, back off suspending for 5 seconds multiplied by the
number of consecutive backoffs.  That is, pause suspends for 5
seconds after the first 10 failures, 10 seconds after the next
10 failures, and so on.

Avoid continually trying to suspend in situations in which a
driver is repeatedly rejecting suspend or a pending wakeup
interrupt is not handled, burning CPU in the continuous suspend
attempts.

Change-Id: I32289676d95a307ea3aa5e78f6c126ca979c0fec
Signed-off-by: Todd Poynor <toddpoynor@google.com>
PM: wakelocks: Replace variable and constants names with CAF version