File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515
1616DEFINE_RWLOCK (octeon_irq_ciu0_rwlock );
1717DEFINE_RWLOCK (octeon_irq_ciu1_rwlock );
18- DEFINE_SPINLOCK (octeon_irq_msi_lock );
1918
2019static int octeon_coreid_for_cpu (int cpu )
2120{
@@ -545,6 +544,8 @@ static struct irq_chip octeon_irq_chip_ciu1 = {
545544
546545#ifdef CONFIG_PCI_MSI
547546
547+ static DEFINE_SPINLOCK (octeon_irq_msi_lock );
548+
548549static void octeon_irq_msi_ack (unsigned int irq )
549550{
550551 if (!octeon_has_feature (OCTEON_FEATURE_PCIE )) {
Original file line number Diff line number Diff line change 4646 * There is no default value -- it has to be initialized.
4747 */
4848u16 cached_kn01_csr ;
49- DEFINE_SPINLOCK (kn01_lock );
49+ static DEFINE_SPINLOCK (kn01_lock );
5050
5151
5252static inline void dec_kn01_be_ack (void )
Original file line number Diff line number Diff line change 8080struct pt_regs ;
8181
8282extern u16 cached_kn01_csr ;
83- extern spinlock_t kn01_lock ;
8483
8584extern void dec_kn01_be_init (void );
8685extern int dec_kn01_be_handler (struct pt_regs * regs , int is_fixup );
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ static struct loongson2_register_config {
4747 int cnt1_enabled , cnt2_enabled ;
4848} reg ;
4949
50- DEFINE_SPINLOCK (sample_lock );
50+ static DEFINE_SPINLOCK (sample_lock );
5151
5252static char * oprofid = "LoongsonPerf" ;
5353static irqreturn_t loongson2_perfcount_handler (int irq , void * dev_id );
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ static void pci_proc_init(void)
206206}
207207#endif /* CONFIG_PROC_FS && PCI_COUNTERS */
208208
209- DEFINE_SPINLOCK (bpci_lock );
209+ static DEFINE_SPINLOCK (bpci_lock );
210210
211211/*****************************************************************************
212212 *
Original file line number Diff line number Diff line change 2121
2222typedef unsigned long machreg_t ;
2323
24- DEFINE_SPINLOCK (nmi_lock );
24+ static DEFINE_SPINLOCK (nmi_lock );
2525
2626/*
2727 * Lets see what else we need to do here. Set up sp, gp?
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ static struct irq_chip bcm1480_irq_type = {
7373/* Store the CPU id (not the logical number) */
7474int bcm1480_irq_owner [BCM1480_NR_IRQS ];
7575
76- DEFINE_SPINLOCK (bcm1480_imr_lock );
76+ static DEFINE_SPINLOCK (bcm1480_imr_lock );
7777
7878void bcm1480_mask_irq (int cpu , int irq )
7979{
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ static struct irq_chip sb1250_irq_type = {
7272/* Store the CPU id (not the logical number) */
7373int sb1250_irq_owner [SB1250_NR_IRQS ];
7474
75- DEFINE_SPINLOCK (sb1250_imr_lock );
75+ static DEFINE_SPINLOCK (sb1250_imr_lock );
7676
7777void sb1250_mask_irq (int cpu , int irq )
7878{
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ device_initcall(snirm_setup_devinit);
132132 * readb/writeb to access them
133133 */
134134
135- DEFINE_SPINLOCK (sni_rm200_i8259A_lock );
135+ static DEFINE_SPINLOCK (sni_rm200_i8259A_lock );
136136#define PIC_CMD 0x00
137137#define PIC_IMR 0x01
138138#define PIC_ISR PIC_CMD
You can’t perform that action at this time.
0 commit comments