diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-10 02:47:06 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-10 02:47:06 +0400 |
commit | 37cfc3f67db9f2d907f6bfcfae590cdbbef623e8 (patch) | |
tree | b573983938838dd76b40a7b53b3744472041720f /arch/sparc/include/asm/page_32.h | |
parent | 38e5781bbf8e82c1635ea845e0d07b2228a5ac7a (diff) | |
parent | 6e4d177dc07b1c4d8e6ef061fe5ffcc7e7646546 (diff) | |
download | linux-37cfc3f67db9f2d907f6bfcfae590cdbbef623e8.tar.xz |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-next
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-next:
sparc32: remove unused file: include/asm/pgtsun4.h
sparc32: fix PAGE_SIZE definition
sparc32: enable different preemptions models
sparc32: support atomic64_t
apbuart: fix section mismatch warning
sparc32: drop useless preprocessor conditional in atomic_32.h
sparc32: drop unused atomic24 support
Diffstat (limited to 'arch/sparc/include/asm/page_32.h')
-rw-r--r-- | arch/sparc/include/asm/page_32.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/sparc/include/asm/page_32.h b/arch/sparc/include/asm/page_32.h index 156707b0f18d..bb5c2ac4055d 100644 --- a/arch/sparc/include/asm/page_32.h +++ b/arch/sparc/include/asm/page_32.h @@ -8,14 +8,10 @@ #ifndef _SPARC_PAGE_H #define _SPARC_PAGE_H -#define PAGE_SHIFT 12 +#include <linux/const.h> -#ifndef __ASSEMBLY__ -/* I have my suspicions... -DaveM */ -#define PAGE_SIZE (1UL << PAGE_SHIFT) -#else -#define PAGE_SIZE (1 << PAGE_SHIFT) -#endif +#define PAGE_SHIFT 12 +#define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) #define PAGE_MASK (~(PAGE_SIZE-1)) #include <asm/btfixup.h> |