mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
block/laptop_mode: Convert timers to use timer_setup()
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Jens Axboe <axboe@kernel.dk> Cc: Michal Hocko <mhocko@suse.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jan Kara <jack@suse.cz> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Nicholas Piggin <npiggin@gmail.com> Cc: Vladimir Davydov <vdavydov.dev@gmail.com> Cc: Matthew Wilcox <mawilcox@microsoft.com> Cc: Jeff Layton <jlayton@redhat.com> Cc: linux-block@vger.kernel.org Cc: linux-mm@kvack.org Signed-off-by: Kees Cook <keescook@chromium.org>
This commit is contained in:
parent
1e9aa74ecd
commit
bca237a52c
3 changed files with 10 additions and 9 deletions
|
|
@ -308,7 +308,7 @@ static inline void cgroup_writeback_umount(void)
|
|||
void laptop_io_completion(struct backing_dev_info *info);
|
||||
void laptop_sync_completion(void);
|
||||
void laptop_mode_sync(struct work_struct *work);
|
||||
void laptop_mode_timer_fn(unsigned long data);
|
||||
void laptop_mode_timer_fn(struct timer_list *t);
|
||||
#else
|
||||
static inline void laptop_sync_completion(void) { }
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue