diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2009-07-25 10:43:30 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2009-07-27 15:07:16 -0400 |
| commit | 0fc7741cfd53c5c5ca710e075e05808e1bf9be71 (patch) | |
| tree | e8fcaaee972f51343aa201cb80593e007d7a2d95 /include/linux | |
| parent | 87047afaf2b9328aae92753ba1501b6c0f03370f (diff) | |
proportions: Convert to atomic_spinlck
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/proportions.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/proportions.h b/include/linux/proportions.h index cf793bbbd05e..de2e44784a6e 100644 --- a/include/linux/proportions.h +++ b/include/linux/proportions.h | |||
| @@ -58,7 +58,7 @@ struct prop_local_percpu { | |||
| 58 | */ | 58 | */ |
| 59 | int shift; | 59 | int shift; |
| 60 | unsigned long period; | 60 | unsigned long period; |
| 61 | spinlock_t lock; /* protect the snapshot state */ | 61 | atomic_spinlock_t lock; /* protect the snapshot state */ |
| 62 | }; | 62 | }; |
| 63 | 63 | ||
| 64 | int prop_local_init_percpu(struct prop_local_percpu *pl); | 64 | int prop_local_init_percpu(struct prop_local_percpu *pl); |
| @@ -106,11 +106,11 @@ struct prop_local_single { | |||
| 106 | */ | 106 | */ |
| 107 | unsigned long period; | 107 | unsigned long period; |
| 108 | int shift; | 108 | int shift; |
| 109 | spinlock_t lock; /* protect the snapshot state */ | 109 | atomic_spinlock_t lock; /* protect the snapshot state */ |
| 110 | }; | 110 | }; |
| 111 | 111 | ||
| 112 | #define INIT_PROP_LOCAL_SINGLE(name) \ | 112 | #define INIT_PROP_LOCAL_SINGLE(name) \ |
| 113 | { .lock = __SPIN_LOCK_UNLOCKED(name.lock), \ | 113 | { .lock = __ATOMIC_SPIN_LOCK_UNLOCKED(name.lock), \ |
| 114 | } | 114 | } |
| 115 | 115 | ||
| 116 | int prop_local_init_single(struct prop_local_single *pl); | 116 | int prop_local_init_single(struct prop_local_single *pl); |
