Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1619434
| From | Geliang Tang <geliangtang@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] SGI-XP: use setup_timer |
| Date | 2017-04-09 03:50 +0200 |
| Message-ID | <tua9k-4Jh-15@gated-at.bofh.it> (permalink) |
| References | <tua9j-4Jh-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang <geliangtang@gmail.com> --- drivers/misc/sgi-xp/xpc_main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/misc/sgi-xp/xpc_main.c b/drivers/misc/sgi-xp/xpc_main.c index 7f32712..a1b6f75 100644 --- a/drivers/misc/sgi-xp/xpc_main.c +++ b/drivers/misc/sgi-xp/xpc_main.c @@ -931,10 +931,9 @@ xpc_setup_partitions(void) part->act_state = XPC_P_AS_INACTIVE; XPC_SET_REASON(part, 0, 0); - init_timer(&part->disengage_timer); - part->disengage_timer.function = - xpc_timeout_partition_disengage; - part->disengage_timer.data = (unsigned long)part; + setup_timer(&part->disengage_timer, + xpc_timeout_partition_disengage, + (unsigned long)part); part->setup_state = XPC_P_SS_UNSET; init_waitqueue_head(&part->teardown_wq); -- 2.9.3
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] dmaengine: ioat: use setup_timer Geliang Tang <geliangtang@gmail.com> - 2017-04-09 03:50 +0200 [PATCH] SGI-XP: use setup_timer Geliang Tang <geliangtang@gmail.com> - 2017-04-09 03:50 +0200 Re: [PATCH] dmaengine: ioat: use setup_timer Dan Williams <dan.j.williams@intel.com> - 2017-04-09 20:10 +0200
csiph-web