patch-2.4.5 linux/include/asm-ppc/smp.h

Next file: linux/include/asm-ppc/smplock.h
Previous file: linux/include/asm-ppc/signal.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.4/linux/include/asm-ppc/smp.h linux/include/asm-ppc/smp.h
@@ -1,8 +1,14 @@
+/*
+ * BK Id: SCCS/s.smp.h 1.9 05/17/01 18:14:25 cort
+ */
 /* smp.h: PPC specific SMP stuff.
  *
- * Taken from asm-sparc/smp.h
+ * Original was a copy of sparc smp.h.  Now heavily modified
+ * for PPC.
+ *
+ * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
+ * Copyright (C) 1996-2001 Cort Dougan <cort@fsmlabs.com>
  */
-
 #ifdef __KERNEL__
 #ifndef _PPC_SMP_H
 #define _PPC_SMP_H
@@ -21,9 +27,11 @@
 	unsigned long *pte_cache;
 	unsigned long pgtable_cache_sz;
 };
-extern struct cpuinfo_PPC cpu_data[NR_CPUS];
 
+extern struct cpuinfo_PPC cpu_data[NR_CPUS];
+extern unsigned long cpu_online_map;
 extern unsigned long smp_proc_in_lock[NR_CPUS];
+extern volatile unsigned long cpu_callin_map[NR_CPUS];
 
 extern void smp_store_cpu_info(int id);
 extern void smp_send_tlb_invalidate(int);
@@ -37,7 +45,6 @@
 /* 1 to 1 mapping on PPC -- Cort */
 #define cpu_logical_map(cpu) (cpu)
 #define cpu_number_map(x) (x)
-extern volatile unsigned long cpu_callin_map[NR_CPUS];
 
 #define smp_processor_id() (current->processor)
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)