patch-2.4.22 linux-2.4.22/include/asm-ia64/smp.h

Next file: linux-2.4.22/include/asm-ia64/sn/addrs.h
Previous file: linux-2.4.22/include/asm-ia64/sal.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/include/asm-ia64/smp.h linux-2.4.22/include/asm-ia64/smp.h
@@ -3,7 +3,7 @@
  *
  * Copyright (C) 1999 VA Linux Systems
  * Copyright (C) 1999 Walt Drummond <drummond@valinux.com>
- * Copyright (C) 2001 Hewlett-Packard Co
+ * Copyright (C) 2001-2003 Hewlett-Packard Co
  *	David Mosberger-Tang <davidm@hpl.hp.com>
  */
 #ifndef _ASM_IA64_SMP_H
@@ -48,6 +48,8 @@
 
 extern unsigned long ap_wakeup_vector;
 
+#define cpu_online(cpu)		(cpu_online_map & (1UL << (cpu)))
+
 /*
  * Function to map hard smp processor id to logical id.  Slow, so
  * don't use this in performance-critical code.
@@ -58,7 +60,7 @@
 	int i;
 
 	for (i = 0; i < smp_num_cpus; ++i)
-		if (cpu_physical_id(i) == (__u32) cpuid)
+		if (cpu_physical_id(i) == cpuid)
 			break;
 	return i;
 }

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