Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268926
b: refs/heads/master
c: 2d21a29
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed Sep 13, 2011
1 parent ba0d0fe commit 55e6f4b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6b2c1800f1d3a608af952cfbd57f8f1a71c5d9b4
refs/heads/master: 2d21a29fb62f142b8a62496700d8d82a6a8fd783
4 changes: 2 additions & 2 deletions trunk/arch/x86/oprofile/nmi_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,10 +355,10 @@ static void nmi_cpu_setup(void *dummy)
int cpu = smp_processor_id();
struct op_msrs *msrs = &per_cpu(cpu_msrs, cpu);
nmi_cpu_save_registers(msrs);
spin_lock(&oprofilefs_lock);
raw_spin_lock(&oprofilefs_lock);
model->setup_ctrs(model, msrs);
nmi_cpu_setup_mux(cpu, msrs);
spin_unlock(&oprofilefs_lock);
raw_spin_unlock(&oprofilefs_lock);
per_cpu(saved_lvtpc, cpu) = apic_read(APIC_LVTPC);
apic_write(APIC_LVTPC, APIC_DM_NMI);
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/oprofile/event_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ int alloc_event_buffer(void)
{
unsigned long flags;

spin_lock_irqsave(&oprofilefs_lock, flags);
raw_spin_lock_irqsave(&oprofilefs_lock, flags);
buffer_size = oprofile_buffer_size;
buffer_watershed = oprofile_buffer_watershed;
spin_unlock_irqrestore(&oprofilefs_lock, flags);
raw_spin_unlock_irqrestore(&oprofilefs_lock, flags);

if (buffer_watershed >= buffer_size)
return -EINVAL;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/oprofile/oprofile_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ static int oprofile_perf_create_files(struct super_block *sb, struct dentry *roo

static int oprofile_perf_setup(void)
{
spin_lock(&oprofilefs_lock);
raw_spin_lock(&oprofilefs_lock);
op_perf_setup();
spin_unlock(&oprofilefs_lock);
raw_spin_unlock(&oprofilefs_lock);
return 0;
}

Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/oprofile/oprofilefs.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#define OPROFILEFS_MAGIC 0x6f70726f

DEFINE_SPINLOCK(oprofilefs_lock);
DEFINE_RAW_SPINLOCK(oprofilefs_lock);

static struct inode *oprofilefs_get_inode(struct super_block *sb, int mode)
{
Expand Down Expand Up @@ -76,9 +76,9 @@ int oprofilefs_ulong_from_user(unsigned long *val, char const __user *buf, size_
if (copy_from_user(tmpbuf, buf, count))
return -EFAULT;

spin_lock_irqsave(&oprofilefs_lock, flags);
raw_spin_lock_irqsave(&oprofilefs_lock, flags);
*val = simple_strtoul(tmpbuf, NULL, 0);
spin_unlock_irqrestore(&oprofilefs_lock, flags);
raw_spin_unlock_irqrestore(&oprofilefs_lock, flags);
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/oprofile.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ ssize_t oprofilefs_ulong_to_user(unsigned long val, char __user * buf, size_t co
int oprofilefs_ulong_from_user(unsigned long * val, char const __user * buf, size_t count);

/** lock for read/write safety */
extern spinlock_t oprofilefs_lock;
extern raw_spinlock_t oprofilefs_lock;

/**
* Add the contents of a circular buffer to the event buffer.
Expand Down

0 comments on commit 55e6f4b

Please sign in to comment.