diff options
Diffstat (limited to 'include/linux/ratelimit.h')
| -rw-r--r-- | include/linux/ratelimit.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ratelimit.h b/include/linux/ratelimit.h index 668cf1bef030..7596e38453ff 100644 --- a/include/linux/ratelimit.h +++ b/include/linux/ratelimit.h | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | #define DEFAULT_RATELIMIT_BURST 10 | 8 | #define DEFAULT_RATELIMIT_BURST 10 |
| 9 | 9 | ||
| 10 | struct ratelimit_state { | 10 | struct ratelimit_state { |
| 11 | spinlock_t lock; /* protect the state */ | 11 | raw_spinlock_t lock; /* protect the state */ |
| 12 | 12 | ||
| 13 | int interval; | 13 | int interval; |
| 14 | int burst; | 14 | int burst; |
| @@ -20,7 +20,7 @@ struct ratelimit_state { | |||
| 20 | #define DEFINE_RATELIMIT_STATE(name, interval_init, burst_init) \ | 20 | #define DEFINE_RATELIMIT_STATE(name, interval_init, burst_init) \ |
| 21 | \ | 21 | \ |
| 22 | struct ratelimit_state name = { \ | 22 | struct ratelimit_state name = { \ |
| 23 | .lock = __SPIN_LOCK_UNLOCKED(name.lock), \ | 23 | .lock = __RAW_SPIN_LOCK_UNLOCKED(name.lock), \ |
| 24 | .interval = interval_init, \ | 24 | .interval = interval_init, \ |
| 25 | .burst = burst_init, \ | 25 | .burst = burst_init, \ |
| 26 | } | 26 | } |
