diff options
Diffstat (limited to 'arch/s390/include/asm/bitops.h')
-rw-r--r-- | arch/s390/include/asm/bitops.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/s390/include/asm/bitops.h b/arch/s390/include/asm/bitops.h index 8a503b1acd63..a6ff5a83e227 100644 --- a/arch/s390/include/asm/bitops.h +++ b/arch/s390/include/asm/bitops.h | |||
@@ -61,7 +61,7 @@ extern const char _ni_bitmap[]; | |||
61 | extern const char _zb_findmap[]; | 61 | extern const char _zb_findmap[]; |
62 | extern const char _sb_findmap[]; | 62 | extern const char _sb_findmap[]; |
63 | 63 | ||
64 | #ifndef __s390x__ | 64 | #ifndef CONFIG_64BIT |
65 | 65 | ||
66 | #define __BITOPS_ALIGN 3 | 66 | #define __BITOPS_ALIGN 3 |
67 | #define __BITOPS_WORDSIZE 32 | 67 | #define __BITOPS_WORDSIZE 32 |
@@ -81,7 +81,7 @@ extern const char _sb_findmap[]; | |||
81 | : "d" (__val), "Q" (*(unsigned long *) __addr) \ | 81 | : "d" (__val), "Q" (*(unsigned long *) __addr) \ |
82 | : "cc"); | 82 | : "cc"); |
83 | 83 | ||
84 | #else /* __s390x__ */ | 84 | #else /* CONFIG_64BIT */ |
85 | 85 | ||
86 | #define __BITOPS_ALIGN 7 | 86 | #define __BITOPS_ALIGN 7 |
87 | #define __BITOPS_WORDSIZE 64 | 87 | #define __BITOPS_WORDSIZE 64 |
@@ -101,7 +101,7 @@ extern const char _sb_findmap[]; | |||
101 | : "d" (__val), "Q" (*(unsigned long *) __addr) \ | 101 | : "d" (__val), "Q" (*(unsigned long *) __addr) \ |
102 | : "cc"); | 102 | : "cc"); |
103 | 103 | ||
104 | #endif /* __s390x__ */ | 104 | #endif /* CONFIG_64BIT */ |
105 | 105 | ||
106 | #define __BITOPS_WORDS(bits) (((bits)+__BITOPS_WORDSIZE-1)/__BITOPS_WORDSIZE) | 106 | #define __BITOPS_WORDS(bits) (((bits)+__BITOPS_WORDSIZE-1)/__BITOPS_WORDSIZE) |
107 | #define __BITOPS_BARRIER() asm volatile("" : : : "memory") | 107 | #define __BITOPS_BARRIER() asm volatile("" : : : "memory") |
@@ -410,7 +410,7 @@ static inline unsigned long __ffz_word_loop(const unsigned long *addr, | |||
410 | unsigned long bytes = 0; | 410 | unsigned long bytes = 0; |
411 | 411 | ||
412 | asm volatile( | 412 | asm volatile( |
413 | #ifndef __s390x__ | 413 | #ifndef CONFIG_64BIT |
414 | " ahi %1,-1\n" | 414 | " ahi %1,-1\n" |
415 | " sra %1,5\n" | 415 | " sra %1,5\n" |
416 | " jz 1f\n" | 416 | " jz 1f\n" |
@@ -447,7 +447,7 @@ static inline unsigned long __ffs_word_loop(const unsigned long *addr, | |||
447 | unsigned long bytes = 0; | 447 | unsigned long bytes = 0; |
448 | 448 | ||
449 | asm volatile( | 449 | asm volatile( |
450 | #ifndef __s390x__ | 450 | #ifndef CONFIG_64BIT |
451 | " ahi %1,-1\n" | 451 | " ahi %1,-1\n" |
452 | " sra %1,5\n" | 452 | " sra %1,5\n" |
453 | " jz 1f\n" | 453 | " jz 1f\n" |
@@ -479,7 +479,7 @@ static inline unsigned long __ffs_word_loop(const unsigned long *addr, | |||
479 | */ | 479 | */ |
480 | static inline unsigned long __ffz_word(unsigned long nr, unsigned long word) | 480 | static inline unsigned long __ffz_word(unsigned long nr, unsigned long word) |
481 | { | 481 | { |
482 | #ifdef __s390x__ | 482 | #ifdef CONFIG_64BIT |
483 | if ((word & 0xffffffff) == 0xffffffff) { | 483 | if ((word & 0xffffffff) == 0xffffffff) { |
484 | word >>= 32; | 484 | word >>= 32; |
485 | nr += 32; | 485 | nr += 32; |
@@ -503,7 +503,7 @@ static inline unsigned long __ffz_word(unsigned long nr, unsigned long word) | |||
503 | */ | 503 | */ |
504 | static inline unsigned long __ffs_word(unsigned long nr, unsigned long word) | 504 | static inline unsigned long __ffs_word(unsigned long nr, unsigned long word) |
505 | { | 505 | { |
506 | #ifdef __s390x__ | 506 | #ifdef CONFIG_64BIT |
507 | if ((word & 0xffffffff) == 0) { | 507 | if ((word & 0xffffffff) == 0) { |
508 | word >>= 32; | 508 | word >>= 32; |
509 | nr += 32; | 509 | nr += 32; |
@@ -544,7 +544,7 @@ static inline unsigned long __load_ulong_le(const unsigned long *p, | |||
544 | unsigned long word; | 544 | unsigned long word; |
545 | 545 | ||
546 | p = (unsigned long *)((unsigned long) p + offset); | 546 | p = (unsigned long *)((unsigned long) p + offset); |
547 | #ifndef __s390x__ | 547 | #ifndef CONFIG_64BIT |
548 | asm volatile( | 548 | asm volatile( |
549 | " ic %0,%O1(%R1)\n" | 549 | " ic %0,%O1(%R1)\n" |
550 | " icm %0,2,%O1+1(%R1)\n" | 550 | " icm %0,2,%O1+1(%R1)\n" |