diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-07-25 18:18:34 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-09-13 13:12:05 +0400 |
commit | 2d21a29fb62f142b8a62496700d8d82a6a8fd783 (patch) | |
tree | 78d83ed47a72b1e31ecadb3f77e91f865b407b48 /include/linux/oprofile.h | |
parent | 6b2c1800f1d3a608af952cfbd57f8f1a71c5d9b4 (diff) | |
download | linux-2d21a29fb62f142b8a62496700d8d82a6a8fd783.tar.xz |
locking, oprofile: Annotate oprofilefs lock as raw
The oprofilefs_lock can be taken in atomic context (in profiling
interrupts) and therefore cannot cannot be preempted on -rt -
annotate it.
In mainline this change documents the low level nature of
the lock - otherwise there's no functional difference. Lockdep
and Sparse checking will work as usual.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/oprofile.h')
-rw-r--r-- | include/linux/oprofile.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/oprofile.h b/include/linux/oprofile.h index 49c8727eeb57..a4c562453f6b 100644 --- a/include/linux/oprofile.h +++ b/include/linux/oprofile.h @@ -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. |