]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
sparc32: drop fixmap.h
authorSam Ravnborg <sam@ravnborg.org>
Thu, 26 Jul 2012 11:02:19 +0000 (11:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jul 2012 23:46:16 +0000 (16:46 -0700)
sparc32 does not support fixmaps - so do not pretend so by
having the fixmap.h file.
Move relevant parts to vaddrs.h.

I looked at simplifying this even more but failed to understand
the reasoning behind the extra guard page involved and due to
missing testing possibilities only the trivial conversion was done.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/fixmap.h [deleted file]
arch/sparc/include/asm/highmem.h
arch/sparc/include/asm/vaddrs.h
arch/sparc/mm/highmem.c

diff --git a/arch/sparc/include/asm/fixmap.h b/arch/sparc/include/asm/fixmap.h
deleted file mode 100644 (file)
index 0bdec93..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-/* Highmem related constants */
-
-#ifndef _ASM_FIXMAP_H
-#define _ASM_FIXMAP_H
-
-#include <asm/kmap_types.h>
-
-enum fixed_addresses {
-       FIX_HOLE,
-#ifdef CONFIG_HIGHMEM
-       FIX_KMAP_BEGIN,
-       FIX_KMAP_END = (KM_TYPE_NR * NR_CPUS),
-#endif
-       __end_of_fixed_addresses
-};
-
-/* Leave one empty page between IO pages at 0xfd000000 and
- * the top of the fixmap.
- */
-#define FIXADDR_TOP    (0xfcfff000UL)
-#define FIXADDR_SIZE   ((FIX_KMAP_END + 1) << PAGE_SHIFT)
-#define FIXADDR_START  (FIXADDR_TOP - FIXADDR_SIZE)
-
-#define __fix_to_virt(x)       (FIXADDR_TOP - ((x) << PAGE_SHIFT))
-
-#endif
index a31b2a1f0866a3b585e6e46b6cfdaa205af7fabd..639338353909f29ba994340a8ad6a10ef4543495 100644 (file)
@@ -21,7 +21,6 @@
 #ifdef __KERNEL__
 
 #include <linux/interrupt.h>
-#include <asm/fixmap.h>
 #include <asm/vaddrs.h>
 #include <asm/kmap_types.h>
 #include <asm/pgtable.h>
index da6535d88a724c6538730e95718c40dd81057bc5..c3dbcf902034dc2fa3e566beeec1f6e62022a130 100644 (file)
  */
 #define SRMMU_NOCACHE_ALCRATIO 64      /* 256 pages per 64MB of system RAM */
 
+#ifndef __ASSEMBLY__
+#include <asm/kmap_types.h>
+
+enum fixed_addresses {
+       FIX_HOLE,
+#ifdef CONFIG_HIGHMEM
+       FIX_KMAP_BEGIN,
+       FIX_KMAP_END = (KM_TYPE_NR * NR_CPUS),
+#endif
+       __end_of_fixed_addresses
+};
+#endif
+
+/* Leave one empty page between IO pages at 0xfd000000 and
+ * the top of the fixmap.
+ */
+#define FIXADDR_TOP            (0xfcfff000UL)
+#define FIXADDR_SIZE           ((FIX_KMAP_END + 1) << PAGE_SHIFT)
+#define FIXADDR_START          (FIXADDR_TOP - FIXADDR_SIZE)
+
+#define __fix_to_virt(x)        (FIXADDR_TOP - ((x) << PAGE_SHIFT))
+
 #define SUN4M_IOBASE_VADDR     0xfd000000 /* Base for mapping pages */
 #define IOBASE_VADDR           0xfe000000
 #define IOBASE_END             0xfe600000
index 856432a109d20883d96f5557d3ce9ffa9e797c15..4d5f8b3c4090530b74ef42cab91e3020d7358a2c 100644 (file)
  * shared by CPUs, and so precious, and establishing them requires IPI.
  * Atomic kmaps are lightweight and we may have NCPUS more of them.
  */
-#include <linux/mm.h>
 #include <linux/highmem.h>
 #include <linux/export.h>
-#include <asm/pgalloc.h>
+#include <linux/mm.h>
+
 #include <asm/cacheflush.h>
 #include <asm/tlbflush.h>
-#include <asm/fixmap.h>
+#include <asm/pgalloc.h>
+#include <asm/vaddrs.h>
 
 void *kmap_atomic(struct page *page)
 {