[PATCH] timer: add lock annotation to lock_timer_base
Changes
1 files changed · +1 −0
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| kernel/timer.c | modified | +1 | −0 | View file |
kernel/timer.c
View filediff --git a/kernel/timer.c b/kernel/timer.c
index 1d7dd62..6c9fa80 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -175,6 +175,7 @@ static inline void detach_timer(struct timer_list *timer,
*/
static tvec_base_t *lock_timer_base(struct timer_list *timer,
unsigned long *flags)
+ __acquires(timer->base->lock)
{
tvec_base_t *base;