diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-12-16 08:53:27 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-12-17 09:16:25 -0500 |
commit | 88bcea43fdad515074f03aee75616f6562cb8b95 (patch) | |
tree | 79a9f1755ef577a39a868c58839d8f3a49bb8922 /tools/include | |
parent | 23e1a358e81017759714cb413a0e930d4f892563 (diff) |
tools: Introduce asm-generic/bitops.h
In preparation for moving linux/bitops.h from tools/perf/util/ to
tools/include/.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-2wuk8vahl7voz0ie55f07c9k@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/include')
-rw-r--r-- | tools/include/asm-generic/bitops.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/include/asm-generic/bitops.h b/tools/include/asm-generic/bitops.h new file mode 100644 index 000000000000..6dfd9d5fd828 --- /dev/null +++ b/tools/include/asm-generic/bitops.h | |||
@@ -0,0 +1,24 @@ | |||
1 | #ifndef __TOOLS_ASM_GENERIC_BITOPS_H | ||
2 | #define __TOOLS_ASM_GENERIC_BITOPS_H | ||
3 | |||
4 | /* | ||
5 | * tools/ copied this from include/asm-generic/bitops.h, bit by bit as it needed | ||
6 | * some functions. | ||
7 | * | ||
8 | * For the benefit of those who are trying to port Linux to another | ||
9 | * architecture, here are some C-language equivalents. You should | ||
10 | * recode these in the native assembly language, if at all possible. | ||
11 | * | ||
12 | * C language equivalents written by Theodore Ts'o, 9/26/92 | ||
13 | */ | ||
14 | |||
15 | #include <asm-generic/bitops/__ffs.h> | ||
16 | #include <asm-generic/bitops/find.h> | ||
17 | |||
18 | #ifndef _TOOLS_LINUX_BITOPS_H_ | ||
19 | #error only <linux/bitops.h> can be included directly | ||
20 | #endif | ||
21 | |||
22 | #include <asm-generic/bitops/atomic.h> | ||
23 | |||
24 | #endif /* __TOOLS_ASM_GENERIC_BITOPS_H */ | ||