mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
969a86a285
commit
83ad1e6a1d
|
@ -555,9 +555,7 @@ static void cell_virtual_cntr(unsigned long data)
|
||||||
|
|
||||||
static void start_virt_cntrs(void)
|
static void start_virt_cntrs(void)
|
||||||
{
|
{
|
||||||
init_timer(&timer_virt_cntr);
|
setup_timer(&timer_virt_cntr, cell_virtual_cntr, 0UL);
|
||||||
timer_virt_cntr.function = cell_virtual_cntr;
|
|
||||||
timer_virt_cntr.data = 0UL;
|
|
||||||
timer_virt_cntr.expires = jiffies + HZ / 10;
|
timer_virt_cntr.expires = jiffies + HZ / 10;
|
||||||
add_timer(&timer_virt_cntr);
|
add_timer(&timer_virt_cntr);
|
||||||
}
|
}
|
||||||
|
@ -679,9 +677,7 @@ static void spu_evnt_swap(unsigned long data)
|
||||||
|
|
||||||
static void start_spu_event_swap(void)
|
static void start_spu_event_swap(void)
|
||||||
{
|
{
|
||||||
init_timer(&timer_spu_event_swap);
|
setup_timer(&timer_spu_event_swap, spu_evnt_swap, 0UL);
|
||||||
timer_spu_event_swap.function = spu_evnt_swap;
|
|
||||||
timer_spu_event_swap.data = 0UL;
|
|
||||||
timer_spu_event_swap.expires = jiffies + HZ / 25;
|
timer_spu_event_swap.expires = jiffies + HZ / 25;
|
||||||
add_timer(&timer_spu_event_swap);
|
add_timer(&timer_spu_event_swap);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue