Added BITS_PER_LONG_LONG definition avoiding lib/vsprintf.c errors.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
ashmem: avoid deadlock between read and mmap calls

Avoid holding ashmem_mutex across code that can page fault.  Page faults
grab the mmap_sem for the process, which are also held by mmap calls
prior to calling ashmem_mmap, which locks ashmem_mutex.  The reversed
order of locking between the two can deadlock.

The calls that can page fault are read() and the ASHMEM_SET_NAME and
ASHMEM_GET_NAME ioctls.  Move the code that accesses userspace pages
outside the ashmem_mutex.

Bug: 9261835
Change-Id: If1322e981d29c889a56cdc9dfcbc6df2729a45e9
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
wakelock: fix Kernel error when compiling with CONFIG_WAKELOCK_STAT=n. I'm done with wakelock stats, users should their times enjoying their phones and stop looking at stuff that they don't compreehnd.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
wakelock: remove deprecated create_singlethread_workqueue and replace with the modern alloc_workqueue.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>