Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9f6a0dd authored by Ingo Molnar's avatar Ingo Molnar Committed by Linus Torvalds
Browse files

[PATCH] more SPIN_LOCK_UNLOCKED -> DEFINE_SPINLOCK conversions



This converts the final 20 DEFINE_SPINLOCK holdouts.  (another 580 places
are already using DEFINE_SPINLOCK).  Build tested on x86.

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8d06afab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@
#include <asm/arch/corgi.h>
#include <asm/arch/pxa-regs.h>

static spinlock_t corgi_ssp_lock = SPIN_LOCK_UNLOCKED;
static DEFINE_SPINLOCK(corgi_ssp_lock);
static struct ssp_dev corgi_ssp_dev;
static struct ssp_state corgi_ssp_state;

+1 −1
Original line number Diff line number Diff line
@@ -497,7 +497,7 @@ typedef struct {
static pfm_stats_t		pfm_stats[NR_CPUS];
static pfm_session_t		pfm_sessions;	/* global sessions information */

static spinlock_t pfm_alt_install_check = SPIN_LOCK_UNLOCKED;
static DEFINE_SPINLOCK(pfm_alt_install_check);
static pfm_intr_handler_desc_t  *pfm_alt_intr_handler;

static struct proc_dir_entry 	*perfmon_dir;
+1 −1
Original line number Diff line number Diff line
@@ -130,7 +130,7 @@ struct net_device *xpnet_device;
 */
static u64 xpnet_broadcast_partitions;
/* protect above */
static spinlock_t xpnet_broadcast_lock = SPIN_LOCK_UNLOCKED;
static DEFINE_SPINLOCK(xpnet_broadcast_lock);

/*
 * Since the Block Transfer Engine (BTE) is being used for the transfer
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
#include <asm/rtc.h>
#include <asm/time.h>

static spinlock_t mips_rtc_lock = SPIN_LOCK_UNLOCKED;
static DEFINE_SPINLOCK(mips_rtc_lock);

unsigned int get_rtc_time(struct rtc_time *time)
{
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ void disable_8259A_irq(unsigned int irq);
 * moves to arch independent land
 */

spinlock_t i8259A_lock = SPIN_LOCK_UNLOCKED;
spinlock_t DEFINE_SPINLOCK(i8259A_lock);

static void end_8259A_irq (unsigned int irq)
{
Loading