projects/linux·commit acac43e2

atomic: Update comments in atomic.h

acac43e2 · Arun Sharma <[email protected]> · 2011-07-26 16:09:08 -07:00

This clarifies the differences between <linux/atomic.h> and
<asm-generic/atomic.h>

Signed-off-by: Arun Sharma <[email protected]>
Suggested-by: Mike Frysinger <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: David Miller <[email protected]>
Acked-by: Mike Frysinger <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
acac43e2fc4b14ecf1ff229eaa8d1e011d063749
Parents
7847777a

Changes

2 files changed · +4 −1

FileStatusAddDelContent
include/asm-generic/atomic.hmodified+3−1View file
include/linux/atomic.hmodified+1−0View file

include/asm-generic/atomic.h

View file
diff --git a/include/asm-generic/atomic.h b/include/asm-generic/atomic.h
index a8fad94..90e23ea 100644
--- a/include/asm-generic/atomic.h
+++ b/include/asm-generic/atomic.h
@@ -1,5 +1,7 @@
/*
- * Generic C implementation of atomic counter operations
+ * Generic C implementation of atomic counter operations. Usable on
+ * UP systems only. Do not include in machine independent code.
+ *
* Originally implemented for MN10300.
*
* Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.

include/linux/atomic.h

View file
diff --git a/include/linux/atomic.h b/include/linux/atomic.h
index 42e7f63..42b77b5 100644
--- a/include/linux/atomic.h
+++ b/include/linux/atomic.h
@@ -1,3 +1,4 @@
+/* Atomic operations usable in machine independent code */
#ifndef _LINUX_ATOMIC_H
#define _LINUX_ATOMIC_H
#include <asm/atomic.h>