patch-2.2.14 linux/arch/alpha/kernel/smp.c

Next file: linux/arch/alpha/kernel/sys_dp264.c
Previous file: linux/arch/alpha/kernel/signal.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.13/linux/arch/alpha/kernel/smp.c linux/arch/alpha/kernel/smp.c
@@ -97,6 +97,9 @@
 	cpu_data[cpuid].loops_per_sec = loops_per_sec;
 	cpu_data[cpuid].last_asn
 	  = (cpuid << WIDTH_HARDWARE_ASN) + ASN_FIRST_VERSION;
+
+        cpu_data[cpuid].irq_count = 0;
+        cpu_data[cpuid].bh_count = 0;
 }
 
 /*
@@ -580,7 +583,7 @@
 smp_percpu_timer_interrupt(struct pt_regs *regs)
 {
 	int cpu = smp_processor_id();
-	int user = user_mode(regs);
+	unsigned long user = user_mode(regs);
 	struct cpuinfo_alpha *data = &cpu_data[cpu];
 
 	/* Record kernel PC */
@@ -902,7 +905,7 @@
 			return;
 	} else
 		flush_tlb_other(mm);
-	
+       
 	data.vma = vma;
 	data.mm = mm;
 	data.addr = addr;

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