platform_system_core/libcutils
Andy McFadden ac322da69e Atomic/SMP update.
Added atomic-inline.h.  Added a platform-specific memory barrier call
there.

Added android_atomic_acquire_cmpxchg() and android_atomic_release_store().
Not tested on Mac OS X or SH.

Added memory barrier calls to linux-x86 atomics.  Mac OS X has barrier
functions already.  sh isn't really SMP-ready.  linux-arm needs work
(to be done in a separate change).

Updated the makefile to make the SMP state visible to the code here.
Note that host binaries are NOT built with SMP enabled; while our hosts
are very likely SMP, it's not worth figuring out e.g. whether it's okay
to use the SSE2 mfence instruction or have to use something else.  We
haven't had barriers enabled in host tools before, so there's probably
no need to stat now.

Removed quasiatomic 64-bit calls (now part of Dalvik).

Change-Id: I49e5e6c8abe70f304cdedb9d7b8e6e65f8925815
2010-05-20 21:40:33 -07:00
..
abort_socket.c Fix bug where ECONNABORTED would have always occured on asocket_write. 2009-05-29 16:10:22 -07:00
Android.mk Atomic/SMP update. 2010-05-20 21:40:33 -07:00
array.c auto import from //branches/cupcake_rel/...@138607 2009-03-13 13:04:37 -07:00
ashmem-dev.c Added ashmem_get_size_region() function. 2009-06-02 00:55:30 +01:00
ashmem-host.c Added ashmem_get_size_region() function. 2009-06-02 00:55:30 +01:00
atomic-android-arm.S Atomic/SMP update. 2010-05-20 21:40:33 -07:00
atomic-android-armv6.S Add missing symbol type directives. 2009-12-03 17:20:58 -08:00
atomic-android-sh.c Atomic/SMP update. 2010-05-20 21:40:33 -07:00
atomic.c Atomic/SMP update. 2010-05-20 21:40:33 -07:00
buffer.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
buffer.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
config_utils.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
cpu_info.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
dir_hash.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
dlmalloc_stubs.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
hashmap.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
iosched_policy.c cutils: schedpolicy: remove stray include 2010-02-26 11:45:27 -08:00
load_file.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
loghack.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
memory.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
memset32.S auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
mq.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
mspace.c Break out create_contiguous_mspace_with_base 2010-01-26 13:35:20 -08:00
native_handle.c move native_handle stuff from master_gl 2009-05-20 17:22:13 -07:00
NOTICE auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
open_memstream.c Try to fix Mac build. 2010-01-26 09:30:02 -08:00
private.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
process_name.c cutils: make set_process_name set kernel thread name as well 2009-11-05 12:26:56 -08:00
properties.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
record_stream.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
sched_policy.c fix windows SDK build 2010-05-08 11:51:13 -07:00
selector.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_inaddr_any_server.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_local.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_local_client.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_local_server.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_loopback_client.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_loopback_server.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_network_client.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
strdup8to16.c auto import from //branches/cupcake_rel/...@138607 2009-03-13 13:04:37 -07:00
strdup16to8.c Fix a potential integer overflow bug that could result in memory overwrites. 2009-05-02 19:43:30 +02:00
threads.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
tzfile.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
tzstrftime.c Add support for "standalone months" to tztime's strftime(). 2009-05-14 17:22:20 -07:00
tztime.c Fix an infinite loop in time2sub. 2009-09-09 18:32:07 -07:00
uio.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
zygote.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00