Skip to content

Commit

Permalink
hrtimer: convert powerpc/oprofile to the new hrtimer apis
Browse files Browse the repository at this point in the history
In order to be able to do range hrtimers we need to use accessor functions
to the "expire" member of the hrtimer struct.
This patch converts powerpc/oprofile to these accessors.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
  • Loading branch information
Arjan van de Ven committed Sep 6, 2008
1 parent cc584b2 commit 23446d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/oprofile/cell/spu_profiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ int start_spu_profiling(unsigned int cycles_reset)
pr_debug("timer resolution: %lu\n", TICK_NSEC);
kt = ktime_set(0, profiling_interval);
hrtimer_init(&timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
timer.expires = kt;
hrtimer_set_expires(&timer, kt);
timer.function = profile_spus;

/* Allocate arrays for collecting SPU PC samples */
Expand Down

0 comments on commit 23446d1

Please sign in to comment.