summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/oprofile
diff options
context:
space:
mode:
authorAllen Pais <allen.lkml@gmail.com>2017-09-22 17:04:58 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2017-10-04 11:28:01 +1100
commit83ad1e6a1dc049dd04be4564125a7fd49e022183 (patch)
tree19830f6949a9556f301c105c0c4bf4bae6a3121e /arch/powerpc/oprofile
parent969a86a2855d484a00205a424df1c693acee15d9 (diff)
downloadop-kernel-dev-83ad1e6a1dc049dd04be4564125a7fd49e022183.zip
op-kernel-dev-83ad1e6a1dc049dd04be4564125a7fd49e022183.tar.gz
powerpc/oprofile: Use setup_timer() helper
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais <allen.lkml@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/oprofile')
-rw-r--r--arch/powerpc/oprofile/op_model_cell.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/powerpc/oprofile/op_model_cell.c b/arch/powerpc/oprofile/op_model_cell.c
index c82497a..264b6ab 100644
--- a/arch/powerpc/oprofile/op_model_cell.c
+++ b/arch/powerpc/oprofile/op_model_cell.c
@@ -555,9 +555,7 @@ static void cell_virtual_cntr(unsigned long data)
static void start_virt_cntrs(void)
{
- init_timer(&timer_virt_cntr);
- timer_virt_cntr.function = cell_virtual_cntr;
- timer_virt_cntr.data = 0UL;
+ setup_timer(&timer_virt_cntr, cell_virtual_cntr, 0UL);
timer_virt_cntr.expires = jiffies + HZ / 10;
add_timer(&timer_virt_cntr);
}
@@ -679,9 +677,7 @@ static void spu_evnt_swap(unsigned long data)
static void start_spu_event_swap(void)
{
- init_timer(&timer_spu_event_swap);
- timer_spu_event_swap.function = spu_evnt_swap;
- timer_spu_event_swap.data = 0UL;
+ setup_timer(&timer_spu_event_swap, spu_evnt_swap, 0UL);
timer_spu_event_swap.expires = jiffies + HZ / 25;
add_timer(&timer_spu_event_swap);
}
OpenPOWER on IntegriCloud