Skip to content

Commit

Permalink
atomic: Update comments in atomic.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arun Sharma authored and torvalds committed Jul 26, 2011
1 parent 7847777 commit acac43e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/asm-generic/atomic.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/linux/atomic.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* Atomic operations usable in machine independent code */
#ifndef _LINUX_ATOMIC_H
#define _LINUX_ATOMIC_H
#include <asm/atomic.h>
Expand Down

0 comments on commit acac43e

Please sign in to comment.