RE: fixing 2.6.10 UP builds

From: Mark Goodwin <markgw_at_sgi.com>
Date: 2005-01-13 11:55:28
On Wed, 12 Jan 2005, Luck, Tony wrote:

> just what is sn_hwperf_op_cpu() supposed to do in the UP case?

Needs to be wrapped with CONFIG_SMP, as follows (untested) :

===== arch/ia64/sn/kernel/sn2/sn_hwperf.c 1.5 vs edited =====
--- 1.5/arch/ia64/sn/kernel/sn2/sn_hwperf.c	2004-10-27 05:12:58 +10:00
+++ edited/arch/ia64/sn/kernel/sn2/sn_hwperf.c	2005-01-13 11:53:01 +11:00
@@ -355,9 +355,13 @@
  	}
  	else {
  		if (use_ipi) {
+#ifdef CONFIG_SMP
  			/* use an interprocessor interrupt to call SAL */
  			smp_call_function_single(cpu, sn_hwperf_call_sal,
  				op_info, 1, 1);
+#else
+			sn_hwperf_call_sal(op_info);
+#endif
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Wed Jan 12 20:04:17 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:34 EST