Skip to contentSkip to conversation

gt64260_pic.c SMP cleanup

PATCH Dale Farnsworth 1 participant 2 messages Mar 11, 2003 – Mar 12, 2003

lore
Share & tools
lore
#0 lore raw

This patch generalizes the GT64260's SMP irq affinity handling.

It replaces the hardcoded per-cpu masks specific to the MOTMVP with per-cpu mask tables that can be manipulated via the set_affinity API. Interrupts can now be shared or steered dynamically between processors by manipulating /proc/irq/*/smp_affinity.

-Dale

This patch is relative to linuxppc_2_4_devel with my gt64260_mask_irq patch.

===== include/asm-ppc/gt64260.h 1.14 vs edited =====

include/asm-ppc/gt64260.h +2 -0
@@ -351,4 +351,6 @@
 
 void gt64260_mpsc_progress(char *s, unsigned short hex);
 
+void gt64260_set_irq_affinity(unsigned int irq, unsigned long mask);
+
 #endif /* __ASMPPC_GT64260_H */

===== arch/ppc/kernel/gt64260_pic.c 1.11 vs edited =====

arch/ppc/kernel/gt64260_pic.c +164 -56

301 lines not on this page · raw message

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw

gt64260_pic.c SMP cleanup, #2

Quoted 7 lines · Dale Farnsworth

This patch generalizes the GT64260's SMP irq affinity handling.

It replaces the hardcoded per-cpu masks specific to the MOTMVP with per-cpu mask tables that can be manipulated via the set_affinity API. Interrupts can now be shared or steered dynamically between processors by manipulating /proc/irq/*/smp_affinity.

Oops, that patch had an undefined reference to gt64260_set_irq_affinity when CONFIG_SMP=n.

This patch is relative to linuxppc_2_4_devel plus my recent gt64260_mask_irq patch.

Thanks,
-Dale

===== include/asm-ppc/gt64260.h 1.14 vs edited =====

include/asm-ppc/gt64260.h +4 -0
@@ -351,4 +351,8 @@
 
 void gt64260_mpsc_progress(char *s, unsigned short hex);
 
+void gt64260_set_intr_mask_reg_offsets(int cpu,
+					u32 lo_reg_offset,
+					u32 hi_reg_offset);
+
 #endif /* __ASMPPC_GT64260_H */

===== arch/ppc/kernel/gt64260_pic.c 1.11 vs edited =====

arch/ppc/kernel/gt64260_pic.c +185 -57

339 lines not on this page · raw message

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/