]> git.baikalelectronics.ru Git - kernel.git/commit
ia64: Use setup_timer
authorVaishali Thakkar <vthakkar1994@gmail.com>
Thu, 11 Jun 2015 04:48:17 +0000 (10:18 +0530)
committerTony Luck <tony.luck@intel.com>
Mon, 15 Jun 2015 22:45:18 +0000 (15:45 -0700)
commit0b1b3210734db805a531ff7b55279700e5e995b5
tree0030d9f7f287ab3fa5239f97e040f7f618fe7f46
parenta958093a0eb3899e0fec32dd271a806f66110ecd
ia64: Use setup_timer

Use the timer API function setup_timer instead of structure field
assignments to initialize a timer.

A simplified version of the Coccinelle semantic patch that performs
this transformation is as follows:

@change@
expression e1, e2, a;
@@

-init_timer(&e1);
+setup_timer(&e1, a, 0UL);
... when != a = e2
-e1.function = a;

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/mca.c