diff options
Diffstat (limited to 'include/asm-generic/atomic.h')
| -rw-r--r-- | include/asm-generic/atomic.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-generic/atomic.h b/include/asm-generic/atomic.h index 33bd2de3b..b049c2e09 100644 --- a/include/asm-generic/atomic.h +++ b/include/asm-generic/atomic.h @@ -6,6 +6,7 @@ * * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) + * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public Licence @@ -44,6 +45,10 @@ #define atomic_read(v) (*(volatile int *)&(v)->counter) #endif +#ifndef cpu_relaxed_read_atomic +#define cpu_relaxed_read_atomic(v) atomic_read(v) +#endif + /** * atomic_set - set atomic variable * @v: pointer of type atomic_t |
