Skip to content

Commit

Permalink
Convert the remaining SPIN_LOCK_UNLOCKED instances to DEFINE_SPINLOCK.
Browse files Browse the repository at this point in the history
    
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Oct 29, 2005
1 parent 57468af commit 2f69ddc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion arch/mips/au1000/common/dbdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
* functions. The drivers allocate the data buffers and assign them
* to the descriptors.
*/
static spinlock_t au1xxx_dbdma_spin_lock = SPIN_LOCK_UNLOCKED;
static DEFINE_SPINLOCK(au1xxx_dbdma_spin_lock);

/* I couldn't find a macro that did this......
*/
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/pci/ops-nile4.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

volatile unsigned long *const vrc_pciregs = (void *) Vrc5074_BASE;

static spinlock_t nile4_pci_lock;
static DEFINE_SPINLOCK(nile4_pci_lock);

static int nile4_pcibios_config_access(unsigned char access_type,
struct pci_bus *bus, unsigned int devfn, int where, u32 * val)
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/pmc-sierra/yosemite/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ extern void (*mips_hpt_init)(unsigned int);

#define LAUNCHSTACK_SIZE 256

static spinlock_t launch_lock __initdata;
static __initdata DEFINE_SPINLOCK(launch_lock);

static unsigned long secondary_sp __initdata;
static unsigned long secondary_gp __initdata;
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/vr41xx/common/cmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

static void __iomem *cmu_base;
static uint16_t cmuclkmsk, cmuclkmsk2;
static spinlock_t cmu_lock;
static DEFINE_SPINLOCK(cmu_lock);

#define cmu_read(offset) readw(cmu_base + (offset))
#define cmu_write(offset, value) writew((value), cmu_base + (offset))
Expand Down
4 changes: 2 additions & 2 deletions arch/mips/vr41xx/common/vrc4173.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ EXPORT_SYMBOL(vrc4173_io_offset);
static int vrc4173_initialized;
static uint16_t vrc4173_cmuclkmsk;
static uint16_t vrc4173_selectreg;
static spinlock_t vrc4173_cmu_lock;
static spinlock_t vrc4173_giu_lock;
static DEFINE_SPINLOCK(vrc4173_cmu_lock);
static DEFINE_SPINLOCK(vrc4173_giu_lock);

static inline void set_cmusrst(uint16_t val)
{
Expand Down

0 comments on commit 2f69ddc

Please sign in to comment.