Re: register_timer_hook use in arch/sh/oprofile

From: Paul Mackerras
Date: Wed Jun 24 2009 - 08:40:36 EST


Paul Mundt writes:

> Yes, that all works fine. My comment was more in reference to the
> hardware performance counters that don't have IRQs of their own, which
> still need to be tied in to the perf_counter API.

For them you would need to check in hw_perf_counter_init() that
counter->attr.sample_period is zero, and fail with an -EINVAL error if
it isn't.

Paul.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/