2 * This confidential and proprietary software may be used only as
3 * authorised by a licensing agreement from ARM Limited
4 * (C) COPYRIGHT 2008-2010 ARM Limited
6 * The entire notice above must be reproduced on all authorised
7 * copies and copies may only be made to the extent permitted
8 * by a licensing agreement from ARM Limited.
12 * @file ump_osk_atomics.c
13 * Implementation of the OS abstraction layer for the UMP kernel device driver
17 #include <asm/atomic.h>
19 int _ump_osk_atomic_dec_and_read( _mali_osk_atomic_t
*atom
)
21 return atomic_dec_return((atomic_t
*)&atom
->u
.val
);
24 int _ump_osk_atomic_inc_and_read( _mali_osk_atomic_t
*atom
)
26 return atomic_inc_return((atomic_t
*)&atom
->u
.val
);