mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
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>
This commit is contained in:
committed by
Ingo Molnar
parent
ec484608c5
commit
f032a45081
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user