Merge tag 'perf-tools-for-v6.4-3-2023-05-06' of git://git.kernel.org/pub/scm/linux...
[linux-block.git] / include / asm-generic / bitops.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
9858c60c
AB
2#ifndef __ASM_GENERIC_BITOPS_H
3#define __ASM_GENERIC_BITOPS_H
1da177e4
LT
4
5/*
6 * For the benefit of those who are trying to port Linux to another
5d0c9b0e
WD
7 * architecture, here are some C-language equivalents. They should
8 * generate reasonable code, so take a look at what your compiler spits
9 * out before rolling your own buggy implementation in assembly language.
9858c60c 10 *
1da177e4
LT
11 * C language equivalents written by Theodore Ts'o, 9/26/92
12 */
13
9858c60c
AB
14#include <linux/irqflags.h>
15#include <linux/compiler.h>
febdbfe8 16#include <asm/barrier.h>
9858c60c 17
f51a05c1
AM
18#include <asm-generic/bitops/__ffs.h>
19#include <asm-generic/bitops/ffz.h>
20#include <asm-generic/bitops/fls.h>
9858c60c 21#include <asm-generic/bitops/__fls.h>
f51a05c1 22#include <asm-generic/bitops/fls64.h>
1da177e4 23
0624517d
JS
24#ifndef _LINUX_BITOPS_H
25#error only <linux/bitops.h> can be included directly
26#endif
27
f51a05c1
AM
28#include <asm-generic/bitops/sched.h>
29#include <asm-generic/bitops/ffs.h>
30#include <asm-generic/bitops/hweight.h>
26333576 31#include <asm-generic/bitops/lock.h>
1da177e4 32
9858c60c
AB
33#include <asm-generic/bitops/atomic.h>
34#include <asm-generic/bitops/non-atomic.h>
861b5ae7 35#include <asm-generic/bitops/le.h>
f51a05c1 36#include <asm-generic/bitops/ext2-atomic.h>
1da177e4 37
9858c60c 38#endif /* __ASM_GENERIC_BITOPS_H */