Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1736243 > unrolled thread
| Started by | Kees Cook <keescook@chromium.org> |
|---|---|
| First post | 2017-09-21 01:30 +0200 |
| Last post | 2017-09-21 01:30 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v2 05/31] timer: Remove init_timer_pinned() in favor of setup_pinned_timer() Kees Cook <keescook@chromium.org> - 2017-09-21 01:30 +0200
| From | Kees Cook <keescook@chromium.org> |
|---|---|
| Date | 2017-09-21 01:30 +0200 |
| Subject | [PATCH v2 05/31] timer: Remove init_timer_pinned() in favor of setup_pinned_timer() |
| Message-ID | <urWBk-1gx-17@gated-at.bofh.it> |
Remove uses of init_timer_pinned() with open-coded function and data assignments that could be expressed using setup_pinned_timer(). Signed-off-by: Kees Cook <keescook@chromium.org> --- drivers/net/ethernet/tile/tilepro.c | 5 ++--- include/linux/timer.h | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/tile/tilepro.c b/drivers/net/ethernet/tile/tilepro.c index 49ccee4b9aec..b45c7ee8d5b4 100644 --- a/drivers/net/ethernet/tile/tilepro.c +++ b/drivers/net/ethernet/tile/tilepro.c @@ -1004,9 +1004,8 @@ static void tile_net_register(void *dev_ptr) BUG(); /* Initialize the egress timer. */ - init_timer_pinned(&info->egress_timer); - info->egress_timer.data = (long)info; - info->egress_timer.function = tile_net_handle_egress_timer; + setup_pinned_timer(&info->egress_timer, tile_net_handle_egress_timer, + (long)info); u64_stats_init(&info->stats.syncp); diff --git a/include/linux/timer.h b/include/linux/timer.h index 959ba660aef0..c6a1bc0bdf37 100644 --- a/include/linux/timer.h +++ b/include/linux/timer.h @@ -128,8 +128,6 @@ static inline void init_timer_on_stack_key(struct timer_list *timer, #define init_timer(timer) \ __init_timer((timer), 0) -#define init_timer_pinned(timer) \ - __init_timer((timer), TIMER_PINNED) #define init_timer_deferrable(timer) \ __init_timer((timer), TIMER_DEFERRABLE) -- 2.7.4
Back to top | Article view | linux.kernel
csiph-web