forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools: Introduce asm-generic/bitops.h
In preparation for moving linux/bitops.h from tools/perf/util/ to tools/include/. Cc: Adrian Hunter <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: David Ahern <[email protected]> Cc: Don Zickus <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
- Loading branch information
Showing
4 changed files
with
37 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef __TOOLS_ASM_GENERIC_BITOPS_H | ||
#define __TOOLS_ASM_GENERIC_BITOPS_H | ||
|
||
/* | ||
* tools/ copied this from include/asm-generic/bitops.h, bit by bit as it needed | ||
* some functions. | ||
* | ||
* For the benefit of those who are trying to port Linux to another | ||
* architecture, here are some C-language equivalents. You should | ||
* recode these in the native assembly language, if at all possible. | ||
* | ||
* C language equivalents written by Theodore Ts'o, 9/26/92 | ||
*/ | ||
|
||
#include <asm-generic/bitops/__ffs.h> | ||
#include <asm-generic/bitops/find.h> | ||
|
||
#ifndef _TOOLS_LINUX_BITOPS_H_ | ||
#error only <linux/bitops.h> can be included directly | ||
#endif | ||
|
||
#include <asm-generic/bitops/atomic.h> | ||
|
||
#endif /* __TOOLS_ASM_GENERIC_BITOPS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters