diff options
| author | Tejun Heo <tj@kernel.org> | 2012-11-06 15:26:23 -0500 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2012-11-06 15:26:23 -0500 |
| commit | 5b805f2a7675634fbdf9ac1c9b2256905ab2ea68 (patch) | |
| tree | ee00d1e3d757458d66209b926d274491c6c3f61c /arch/parisc/include/uapi/asm/bitsperlong.h | |
| parent | 1db1e31b1ee3ae126ef98f39083b5f213c7b41bf (diff) | |
| parent | 201e72acb2d3821e2de9ce6091e98859c316b29a (diff) | |
Merge branch 'cgroup/for-3.7-fixes' into cgroup/for-3.8
This is to receive device_cgroup fixes so that further device_cgroup
changes can be made in cgroup/for-3.8.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'arch/parisc/include/uapi/asm/bitsperlong.h')
| -rw-r--r-- | arch/parisc/include/uapi/asm/bitsperlong.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/parisc/include/uapi/asm/bitsperlong.h b/arch/parisc/include/uapi/asm/bitsperlong.h new file mode 100644 index 000000000000..75196b415d3f --- /dev/null +++ b/arch/parisc/include/uapi/asm/bitsperlong.h | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | #ifndef __ASM_PARISC_BITSPERLONG_H | ||
| 2 | #define __ASM_PARISC_BITSPERLONG_H | ||
| 3 | |||
| 4 | /* | ||
| 5 | * using CONFIG_* outside of __KERNEL__ is wrong, | ||
| 6 | * __LP64__ was also removed from headers, so what | ||
| 7 | * is the right approach on parisc? | ||
| 8 | * -arnd | ||
| 9 | */ | ||
| 10 | #if (defined(__KERNEL__) && defined(CONFIG_64BIT)) || defined (__LP64__) | ||
| 11 | #define __BITS_PER_LONG 64 | ||
| 12 | #define SHIFT_PER_LONG 6 | ||
| 13 | #else | ||
| 14 | #define __BITS_PER_LONG 32 | ||
| 15 | #define SHIFT_PER_LONG 5 | ||
| 16 | #endif | ||
| 17 | |||
| 18 | #include <asm-generic/bitsperlong.h> | ||
| 19 | |||
| 20 | #endif /* __ASM_PARISC_BITSPERLONG_H */ | ||
