summaryrefslogtreecommitdiffstats
path: root/arch/parisc/include/uapi/asm/bitsperlong.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2012-10-16 21:28:05 +0100
committerDavid Howells <dhowells@redhat.com>2012-10-16 21:28:05 +0100
commit70c1674f62026e455c0c821fb7f4baf24d2d1139 (patch)
tree45890738781abe3ec50e3604cb222ee0dd9bfb2c /arch/parisc/include/uapi/asm/bitsperlong.h
parente1141355e00a9992fba1c3b3712224c5e58f4118 (diff)
downloadtalos-obmc-linux-70c1674f62026e455c0c821fb7f4baf24d2d1139.tar.gz
talos-obmc-linux-70c1674f62026e455c0c821fb7f4baf24d2d1139.zip
UAPI: (Scripted) Disintegrate arch/parisc/include/asm
Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Michael Kerrisk <mtk.manpages@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/parisc/include/uapi/asm/bitsperlong.h')
-rw-r--r--arch/parisc/include/uapi/asm/bitsperlong.h20
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 @@
+#ifndef __ASM_PARISC_BITSPERLONG_H
+#define __ASM_PARISC_BITSPERLONG_H
+
+/*
+ * using CONFIG_* outside of __KERNEL__ is wrong,
+ * __LP64__ was also removed from headers, so what
+ * is the right approach on parisc?
+ * -arnd
+ */
+#if (defined(__KERNEL__) && defined(CONFIG_64BIT)) || defined (__LP64__)
+#define __BITS_PER_LONG 64
+#define SHIFT_PER_LONG 6
+#else
+#define __BITS_PER_LONG 32
+#define SHIFT_PER_LONG 5
+#endif
+
+#include <asm-generic/bitsperlong.h>
+
+#endif /* __ASM_PARISC_BITSPERLONG_H */
OpenPOWER on IntegriCloud