Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1742195 > unrolled thread

Re: [PATCH] IB/qib: Use setup_timer and mod_timer

Started byDoug Ledford <dledford@redhat.com>
First post2017-09-29 17:30 +0200
Last post2017-09-29 17: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.


Contents

  Re: [PATCH] IB/qib: Use setup_timer and mod_timer Doug Ledford <dledford@redhat.com> - 2017-09-29 17:30 +0200

#1742195 — Re: [PATCH] IB/qib: Use setup_timer and mod_timer

FromDoug Ledford <dledford@redhat.com>
Date2017-09-29 17:30 +0200
SubjectRe: [PATCH] IB/qib: Use setup_timer and mod_timer
Message-ID<uv5oK-7Wg-9@gated-at.bofh.it>
On Sun, 2017-09-24 at 17:21 +0530, Himanshu Jha wrote:
> Use setup_timer and mod_timer API instead of structure assignments.
> 
> This is done using Coccinelle and semantic patch used
> for this as follows:
> 
> @@
> expression x,y,z,a,b;
> @@
> 
> -init_timer (&x);
> +setup_timer (&x, y, z);
> +mod_timer (&a, b);
> -x.function = y;
> -x.data = z;
> -x.expires = b;
> -add_timer(&a);
> 
> Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>

Thanks, applied.

-- 
Doug Ledford <dledford@redhat.com>
    GPG KeyID: B826A3330E572FDD
    Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web