patch-2.3.45 linux/arch/ppc/kernel/irq.c

Next file: linux/arch/ppc/kernel/misc.S
Previous file: linux/arch/ppc/kernel/head.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.44/linux/arch/ppc/kernel/irq.c linux/arch/ppc/kernel/irq.c
@@ -74,8 +74,8 @@
 
 irq_desc_t irq_desc[NR_IRQS];
 int ppc_spurious_interrupts = 0;
-unsigned int ppc_local_bh_count[NR_CPUS];
-unsigned int ppc_local_irq_count[NR_CPUS];
+unsigned int local_bh_count[NR_CPUS];
+unsigned int local_irq_count[NR_CPUS];
 struct irqaction *ppc_irq_action[NR_IRQS];
 unsigned int ppc_cached_irq_mask[NR_MASK_WORDS];
 unsigned int ppc_lost_interrupts[NR_MASK_WORDS];
@@ -350,7 +350,6 @@
 atomic_t global_irq_count;
 
 atomic_t global_bh_count;
-atomic_t global_bh_lock;
 
 static void show(char * str)
 {
@@ -361,12 +360,12 @@
 	printk("\n%s, CPU %d:\n", str, cpu);
 	printk("irq:  %d [%d %d]\n",
 	       atomic_read(&global_irq_count),
-	       ppc_local_irq_count[0],
-	       ppc_local_irq_count[1]);
+	       local_irq_count[0],
+	       local_irq_count[1]);
 	printk("bh:   %d [%d %d]\n",
 	       atomic_read(&global_bh_count),
-	       ppc_local_bh_count[0],
-	       ppc_local_bh_count[1]);
+	       local_bh_count[0],
+	       local_bh_count[1]);
 	stack = (unsigned long *) &str;
 	for (i = 40; i ; i--) {
 		unsigned long x = *++stack;
@@ -401,7 +400,7 @@
 		 * already executing in one..
 		 */
 		if (!atomic_read(&global_irq_count)) {
-			if (ppc_local_bh_count[cpu]
+			if (local_bh_count[cpu]
 			    || !atomic_read(&global_bh_count))
 				break;
 		}
@@ -423,7 +422,7 @@
 				continue;
 			if (global_irq_lock)
 				continue;
-			if (!ppc_local_bh_count[cpu]
+			if (!local_bh_count[cpu]
 			    && atomic_read(&global_bh_count))
 				continue;
 			if (!test_and_set_bit(0,&global_irq_lock))
@@ -514,7 +513,7 @@
 	if (flags & (1 << 15)) {
 		int cpu = smp_processor_id();
 		__cli();
-		if (!ppc_local_irq_count[cpu])
+		if (!local_irq_count[cpu])
 			get_irqlock(cpu);
 	}
 }
@@ -523,7 +522,7 @@
 {
 	int cpu = smp_processor_id();
 
-	if (!ppc_local_irq_count[cpu])
+	if (!local_irq_count[cpu])
 		release_irqlock(cpu);
 	__sti();
 }
@@ -547,7 +546,7 @@
 	retval = 2 + local_enabled;
 
 	/* check for global flags if we're not in an interrupt */
-	if (!ppc_local_irq_count[smp_processor_id()]) {
+	if (!local_irq_count[smp_processor_id()]) {
 		if (local_enabled)
 			retval = 1;
 		if (global_irq_holder == (unsigned char) smp_processor_id())

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