diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-07-25 18:21:48 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-09-13 13:11:47 +0400 |
commit | f032a450812f6c7edd532772cc7c48091bca9f27 (patch) | |
tree | 697632b583437656337cd883b1bb52bca2f6d77f /include/linux/percpu_counter.h | |
parent | ec484608c5885931c432e99ecfd2772288cd993c (diff) | |
download | linux-f032a450812f6c7edd532772cc7c48091bca9f27.tar.xz |
locking, percpu_counter: Annotate ::lock as raw
The percpu_counter::lock can be taken in atomic context and therefore
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/percpu_counter.h')
-rw-r--r-- | include/linux/percpu_counter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/percpu_counter.h b/include/linux/percpu_counter.h index 5edc9014263a..b9df9ed1adc0 100644 --- a/include/linux/percpu_counter.h +++ b/include/linux/percpu_counter.h @@ -16,7 +16,7 @@ #ifdef CONFIG_SMP struct percpu_counter { - spinlock_t lock; + raw_spinlock_t lock; s64 count; #ifdef CONFIG_HOTPLUG_CPU struct list_head list; /* All percpu_counters are on a list */ |