Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Upgrade to 4.4.50-rt62
[kvmfornfv.git]
/
kernel
/
arch
/
parisc
/
include
/
asm
/
bitops.h
diff --git
a/kernel/arch/parisc/include/asm/bitops.h
b/kernel/arch/parisc/include/asm/bitops.h
index
3f9406d
..
da87943
100644
(file)
--- a/
kernel/arch/parisc/include/asm/bitops.h
+++ b/
kernel/arch/parisc/include/asm/bitops.h
@@
-6,7
+6,7
@@
#endif
#include <linux/compiler.h>
#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>
#include <asm/byteorder.h>
#include <asm/barrier.h>
#include <linux/atomic.h>
@@
-17,6
+17,12
@@
* to include/asm-i386/bitops.h or kerneldoc
*/
* 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))
#define CHOP_SHIFTCOUNT(x) (((unsigned long) (x)) & (BITS_PER_LONG - 1))