~ubuntu-branches/ubuntu/lucid/linux-rt/lucid

« back to all changes in this revision

Viewing changes to arch/parisc/include/asm/bitsperlong.h

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2009-08-05 23:00:52 UTC
  • Revision ID: james.westby@ubuntu.com-20090805230052-7xedvqcyk9dnnxb2
Tags: 2.6.31-1.1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 */