summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asm-i386/cpu.h2
-rw-r--r--include/asm-i386/memblk.h2
-rw-r--r--include/asm-i386/node.h3
-rw-r--r--include/linux/mmzone.h2
-rw-r--r--include/linux/topology.h32
5 files changed, 36 insertions, 5 deletions
diff --git a/include/asm-i386/cpu.h b/include/asm-i386/cpu.h
index b2b79ebda49b..8324108c134f 100644
--- a/include/asm-i386/cpu.h
+++ b/include/asm-i386/cpu.h
@@ -3,8 +3,8 @@
#include <linux/device.h>
#include <linux/cpu.h>
+#include <linux/topology.h>
-#include <asm/topology.h>
#include <asm/node.h>
struct i386_cpu {
diff --git a/include/asm-i386/memblk.h b/include/asm-i386/memblk.h
index bd8187e358bb..668fc0d644ba 100644
--- a/include/asm-i386/memblk.h
+++ b/include/asm-i386/memblk.h
@@ -4,8 +4,8 @@
#include <linux/device.h>
#include <linux/mmzone.h>
#include <linux/memblk.h>
+#include <linux/topology.h>
-#include <asm/topology.h>
#include <asm/node.h>
struct i386_memblk {
diff --git a/include/asm-i386/node.h b/include/asm-i386/node.h
index 104f10b2bbf7..052e11250df9 100644
--- a/include/asm-i386/node.h
+++ b/include/asm-i386/node.h
@@ -4,8 +4,7 @@
#include <linux/device.h>
#include <linux/mmzone.h>
#include <linux/node.h>
-
-#include <asm/topology.h>
+#include <linux/topology.h>
struct i386_node {
struct node node;
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 2a80a0c3fe2f..d60c10f0d9e2 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -255,7 +255,7 @@ static inline struct zone *next_zone(struct zone *zone)
#define MAX_NR_MEMBLKS 1
#endif /* CONFIG_NUMA */
-#include <asm/topology.h>
+#include <linux/topology.h>
/* Returns the number of the current Node. */
#define numa_node_id() (cpu_to_node(smp_processor_id()))
diff --git a/include/linux/topology.h b/include/linux/topology.h
new file mode 100644
index 000000000000..fa83ecf25748
--- /dev/null
+++ b/include/linux/topology.h
@@ -0,0 +1,32 @@
+/*
+ * include/linux/topology.h
+ *
+ * Written by: Matthew Dobson, IBM Corporation
+ *
+ * Copyright (C) 2002, IBM Corp.
+ *
+ * All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
+ * NON INFRINGEMENT. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ * Send feedback to <colpatch@us.ibm.com>
+ */
+#ifndef _LINUX_TOPOLOGY_H
+#define _LINUX_TOPOLOGY_H
+
+#include <asm/topology.h>
+
+#endif /* _LINUX_TOPOLOGY_H */