diff options
author | Arun Sharma <asharma@fb.com> | 2011-07-26 19:09:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-26 19:49:47 -0400 |
commit | acac43e2fc4b14ecf1ff229eaa8d1e011d063749 (patch) | |
tree | a0fb12d4ef71a408755a383d8c597ada8a92cbf4 /include | |
parent | 7847777a45f9f8bfc8617dbf107bde1ecb59caee (diff) |
atomic: Update comments in atomic.h
This clarifies the differences between <linux/atomic.h> and
<asm-generic/atomic.h>
Signed-off-by: Arun Sharma <asharma@fb.com>
Suggested-by: Mike Frysinger <vapier.adi@gmail.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: David Miller <davem@davemloft.net>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-generic/atomic.h | 4 | ||||
-rw-r--r-- | include/linux/atomic.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/asm-generic/atomic.h b/include/asm-generic/atomic.h index a8fad943d37b..90e23ea90d0d 100644 --- a/include/asm-generic/atomic.h +++ b/include/asm-generic/atomic.h | |||
@@ -1,5 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Generic C implementation of atomic counter operations | 2 | * Generic C implementation of atomic counter operations. Usable on |
3 | * UP systems only. Do not include in machine independent code. | ||
4 | * | ||
3 | * Originally implemented for MN10300. | 5 | * Originally implemented for MN10300. |
4 | * | 6 | * |
5 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | 7 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. |
diff --git a/include/linux/atomic.h b/include/linux/atomic.h index 42e7f6372ce2..42b77b5446d2 100644 --- a/include/linux/atomic.h +++ b/include/linux/atomic.h | |||
@@ -1,3 +1,4 @@ | |||
1 | /* Atomic operations usable in machine independent code */ | ||
1 | #ifndef _LINUX_ATOMIC_H | 2 | #ifndef _LINUX_ATOMIC_H |
2 | #define _LINUX_ATOMIC_H | 3 | #define _LINUX_ATOMIC_H |
3 | #include <asm/atomic.h> | 4 | #include <asm/atomic.h> |