mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -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 <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Jan Kara <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Nicholas Piggin <[email protected]> Cc: Vladimir Davydov <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: Jeff Layton <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Kees Cook <[email protected]>
This commit is contained in:
parent
1e9aa74ecd
commit
bca237a52c
3 changed files with 10 additions and 9 deletions
|
|
@ -1993,11 +1993,12 @@ int dirty_writeback_centisecs_handler(struct ctl_table *table, int write,
|
|||
}
|
||||
|
||||
#ifdef CONFIG_BLOCK
|
||||
void laptop_mode_timer_fn(unsigned long data)
|
||||
void laptop_mode_timer_fn(struct timer_list *t)
|
||||
{
|
||||
struct request_queue *q = (struct request_queue *)data;
|
||||
struct backing_dev_info *backing_dev_info =
|
||||
from_timer(backing_dev_info, t, laptop_mode_wb_timer);
|
||||
|
||||
wakeup_flusher_threads_bdi(q->backing_dev_info, WB_REASON_LAPTOP_TIMER);
|
||||
wakeup_flusher_threads_bdi(backing_dev_info, WB_REASON_LAPTOP_TIMER);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue