@@ -867,14 +867,14 @@ void set_direct_apic_vector(
void alloc_direct_apic_vector(
uint8_t *vector, void (*handler)(struct cpu_user_regs *))
{
- static DEFINE_SPINLOCK(lock);
+ static DEFINE_SPINLOCK(apic_alloc_lock);
- spin_lock(&lock);
+ spin_lock(&apic_alloc_lock);
if (*vector == 0) {
*vector = alloc_hipriority_vector();
set_direct_apic_vector(*vector, handler);
}
- spin_unlock(&lock);
+ spin_unlock(&apic_alloc_lock);
}
void do_IRQ(struct cpu_user_regs *regs)
@@ -1426,9 +1426,9 @@ static void tsc_check_slave(void *unused)
static void tsc_check_reliability(void)
{
unsigned int cpu = smp_processor_id();
- static DEFINE_SPINLOCK(lock);
+ static DEFINE_SPINLOCK(tsc_check_lock);
- spin_lock(&lock);
+ spin_lock(&tsc_check_lock);
tsc_check_count++;
smp_call_function(tsc_check_slave, NULL, 0);
@@ -1439,7 +1439,7 @@ static void tsc_check_reliability(void)
while ( !cpumask_empty(&tsc_check_cpumask) )
cpu_relax();
- spin_unlock(&lock);
+ spin_unlock(&tsc_check_lock);
}
/*
@@ -371,9 +371,9 @@ static void read_clocks(unsigned char key)
static u64 sumdif_stime = 0, maxdif_stime = 0;
static u64 sumdif_cycles = 0, maxdif_cycles = 0;
static u32 count = 0;
- static DEFINE_SPINLOCK(lock);
+ static DEFINE_SPINLOCK(read_clocks_lock);
- spin_lock(&lock);
+ spin_lock(&read_clocks_lock);
smp_call_function(read_clocks_slave, NULL, 0);
@@ -408,7 +408,7 @@ static void read_clocks(unsigned char key)
min_cycles = per_cpu(read_cycles_time, min_cycles_cpu);
max_cycles = per_cpu(read_cycles_time, max_cycles_cpu);
- spin_unlock(&lock);
+ spin_unlock(&read_clocks_lock);
dif_stime = max_stime - min_stime;
if ( dif_stime > maxdif_stime )
@@ -241,10 +241,10 @@ static int perfc_copy_info(XEN_GUEST_HANDLE_64(xen_sysctl_perfc_desc_t) desc,
/* Dom0 control of perf counters */
int perfc_control(struct xen_sysctl_perfc_op *pc)
{
- static DEFINE_SPINLOCK(lock);
+ static DEFINE_SPINLOCK(perfc_control_lock);
int rc;
- spin_lock(&lock);
+ spin_lock(&perfc_control_lock);
switch ( pc->cmd )
{
@@ -262,7 +262,7 @@ int perfc_control(struct xen_sysctl_perfc_op *pc)
break;
}
- spin_unlock(&lock);
+ spin_unlock(&perfc_control_lock);
pc->nr_counters = NR_PERFCTRS;
pc->nr_vals = perfc_nbr_vals;
@@ -368,10 +368,10 @@ void __init init_trace_bufs(void)
*/
int tb_control(struct xen_sysctl_tbuf_op *tbc)
{
- static DEFINE_SPINLOCK(lock);
+ static DEFINE_SPINLOCK(tb_control_lock);
int rc = 0;
- spin_lock(&lock);
+ spin_lock(&tb_control_lock);
switch ( tbc->cmd )
{
@@ -432,7 +432,7 @@ int tb_control(struct xen_sysctl_tbuf_op *tbc)
break;
}
- spin_unlock(&lock);
+ spin_unlock(&tb_control_lock);
return rc;
}
@@ -1165,7 +1165,7 @@ void panic(const char *fmt, ...)
{
va_list args;
unsigned long flags;
- static DEFINE_SPINLOCK(lock);
+ static DEFINE_SPINLOCK(panic_lock);
static char buf[128];
spin_debug_disable();
@@ -1173,7 +1173,7 @@ void panic(const char *fmt, ...)
debugtrace_dump();
/* Protects buf[] and ensure multi-line message prints atomically. */
- spin_lock_irqsave(&lock, flags);
+ spin_lock_irqsave(&panic_lock, flags);
va_start(args, fmt);
(void)vsnprintf(buf, sizeof(buf), fmt, args);
@@ -1193,7 +1193,7 @@ void panic(const char *fmt, ...)
printk("Reboot in five seconds...\n");
#endif
- spin_unlock_irqrestore(&lock, flags);
+ spin_unlock_irqrestore(&panic_lock, flags);
debugger_trap_immediate();
In order to have unique names when doing lock profiling several local locks "lock" need to be renamed. Signed-off-by: Juergen Gross <jgross@suse.com> --- xen/arch/x86/irq.c | 6 +++--- xen/arch/x86/time.c | 6 +++--- xen/common/keyhandler.c | 6 +++--- xen/common/perfc.c | 6 +++--- xen/common/trace.c | 6 +++--- xen/drivers/char/console.c | 6 +++--- 6 files changed, 18 insertions(+), 18 deletions(-)