[PATCH] per-cpu patch 1/3

Rusty Russell (rusty@rustcorp.com.au)
Thu, 18 Jul 2002 13:46:21 +1000


Name: Export __per_cpu_offset so modules can use per-cpu data.
Author: Rusty Russell
Status: Trivial

D: As per Andrew Morton's request.

diff -urN -I \$.*\$ --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal linux-2.5.25/kernel/ksyms.c working-2.5.25-percpu/kernel/ksyms.c
--- linux-2.5.25/kernel/ksyms.c Sun Jul 7 02:12:24 2002
+++ working-2.5.25-percpu/kernel/ksyms.c Fri Jul 12 16:03:47 2002
@@ -50,6 +50,7 @@
#include <linux/namei.h>
#include <linux/buffer_head.h>
#include <linux/root_dev.h>
+#include <linux/percpu.h>
#include <asm/checksum.h>

#if defined(CONFIG_PROC_FS)
@@ -597,3 +598,6 @@

EXPORT_SYMBOL(tasklist_lock);
EXPORT_SYMBOL(pidhash);
+#if defined(CONFIG_SMP) && defined(__GENERIC_PER_CPU)
+EXPORT_SYMBOL(__per_cpu_offset);
+#endif

--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/