mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00: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:
parent
ec484608c5
commit
f032a45081
2 changed files with 10 additions and 10 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue