]> Pileus Git - ~andy/linux/blobdiff - include/linux/proportions.h
locking, lib/proportions: Annotate prop_local_percpu::lock as raw
[~andy/linux] / include / linux / proportions.h
index cf793bbbd05e18e6d87e98dd1e3e4f9df767d8d6..ef35bb73f69b63716a2c0cc12e65f1a64221c86e 100644 (file)
@@ -58,7 +58,7 @@ struct prop_local_percpu {
         */
        int shift;
        unsigned long period;
-       spinlock_t lock;                /* protect the snapshot state */
+       raw_spinlock_t lock;            /* protect the snapshot state */
 };
 
 int prop_local_init_percpu(struct prop_local_percpu *pl);
@@ -106,11 +106,11 @@ struct prop_local_single {
         */
        unsigned long period;
        int shift;
-       spinlock_t lock;                /* protect the snapshot state */
+       raw_spinlock_t lock;            /* protect the snapshot state */
 };
 
 #define INIT_PROP_LOCAL_SINGLE(name)                   \
-{      .lock = __SPIN_LOCK_UNLOCKED(name.lock),        \
+{      .lock = __RAW_SPIN_LOCK_UNLOCKED(name.lock),    \
 }
 
 int prop_local_init_single(struct prop_local_single *pl);