summaryrefslogtreecommitdiffstats
path: root/arch/parisc/include/asm/bitops.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2017-02-07 08:49:17 +0100
committerIngo Molnar <mingo@kernel.org>2017-02-07 08:49:17 +0100
commit87a8d03266a55f18f31fdb71c28a8dcffe39124d (patch)
treeab337ca060871296a8dc5d47fcd45da9dcb17a3a /arch/parisc/include/asm/bitops.h
parent696204faa6e8a318320ebb49d9fa69bc8275644d (diff)
parentd5adbfcd5f7bcc6fa58a41c5c5ada0e5c826ce2c (diff)
downloadlinux-87a8d03266a55f18f31fdb71c28a8dcffe39124d.tar.bz2
Merge tag 'v4.10-rc7' into efi/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/parisc/include/asm/bitops.h')
-rw-r--r--arch/parisc/include/asm/bitops.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/parisc/include/asm/bitops.h b/arch/parisc/include/asm/bitops.h
index 3f9406d9b9d6..da87943328a5 100644
--- a/arch/parisc/include/asm/bitops.h
+++ b/arch/parisc/include/asm/bitops.h
@@ -6,7 +6,7 @@
#endif
#include <linux/compiler.h>
-#include <asm/types.h> /* for BITS_PER_LONG/SHIFT_PER_LONG */
+#include <asm/types.h>
#include <asm/byteorder.h>
#include <asm/barrier.h>
#include <linux/atomic.h>
@@ -17,6 +17,12 @@
* to include/asm-i386/bitops.h or kerneldoc
*/
+#if __BITS_PER_LONG == 64
+#define SHIFT_PER_LONG 6
+#else
+#define SHIFT_PER_LONG 5
+#endif
+
#define CHOP_SHIFTCOUNT(x) (((unsigned long) (x)) & (BITS_PER_LONG - 1))