Commit a93352c9 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Linus Torvalds

[PATCH] Lock initializer cleanup: S390

Use the new lock initializers DEFINE_SPIN_LOCK and DEFINE_RW_LOCK
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent a2fea16f
......@@ -128,7 +128,7 @@ static struct ctl_table appldata_dir_table[] = {
DEFINE_PER_CPU(struct vtimer_list, appldata_timer);
static atomic_t appldata_expire_count = ATOMIC_INIT(0);
static spinlock_t appldata_timer_lock = SPIN_LOCK_UNLOCKED;
static DEFINE_SPINLOCK(appldata_timer_lock);
static int appldata_interval = APPLDATA_CPU_INTERVAL;
static int appldata_timer_active;
......@@ -140,7 +140,7 @@ static struct tasklet_struct appldata_tasklet_struct;
/*
* Ops list
*/
static spinlock_t appldata_ops_lock = SPIN_LOCK_UNLOCKED;
static DEFINE_SPINLOCK(appldata_ops_lock);
static LIST_HEAD(appldata_ops_list);
......
......@@ -14,7 +14,7 @@
#include <asm/cpcmd.h>
#include <asm/system.h>
static spinlock_t cpcmd_lock = SPIN_LOCK_UNLOCKED;
static DEFINE_SPINLOCK(cpcmd_lock);
static char cpcmd_buf[240];
void cpcmd(char *cmd, char *response, int rlen)
......
......@@ -76,7 +76,7 @@ static void smp_ext_bitcall_others(ec_bit_sig);
* Structure and data for smp_call_function(). This is designed to minimise
* static memory requirements. It also looks cleaner.
*/
static spinlock_t call_lock = SPIN_LOCK_UNLOCKED;
static DEFINE_SPINLOCK(call_lock);
struct call_data_struct {
void (*func) (void *info);
......@@ -566,7 +566,7 @@ static void __init smp_create_idle(unsigned int cpu)
/* Reserving and releasing of CPUs */
static spinlock_t smp_reserve_lock = SPIN_LOCK_UNLOCKED;
static DEFINE_SPINLOCK(smp_reserve_lock);
static int smp_cpu_reserved[NR_CPUS];
int
......
......@@ -273,7 +273,7 @@ char *task_show_regs(struct task_struct *task, char *buffer)
return buffer;
}
spinlock_t die_lock = SPIN_LOCK_UNLOCKED;
DEFINE_SPINLOCK(die_lock);
void die(const char * str, struct pt_regs * regs, long err)
{
......
......@@ -77,7 +77,7 @@ struct dcss_segment {
int segcnt;
};
static spinlock_t dcss_lock = SPIN_LOCK_UNLOCKED;
static DEFINE_SPINLOCK(dcss_lock);
static struct list_head dcss_list = LIST_HEAD_INIT(dcss_list);
static char *segtype_string[] = { "SW", "EW", "SR", "ER", "SN", "EN", "SC",
"EW/EN-MIXED" };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment