Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755357AbZFXMkc (ORCPT ); Wed, 24 Jun 2009 08:40:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752197AbZFXMkY (ORCPT ); Wed, 24 Jun 2009 08:40:24 -0400 Received: from bilbo.ozlabs.org ([203.10.76.25]:59783 "EHLO bilbo.ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752080AbZFXMkX (ORCPT ); Wed, 24 Jun 2009 08:40:23 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19010.7860.240329.636708@cargo.ozlabs.ibm.com> Date: Wed, 24 Jun 2009 22:40:20 +1000 From: Paul Mackerras To: Paul Mundt Cc: Ingo Molnar , Martin Schwidefsky , linux-kernel , Peter Zijlstra Subject: Re: register_timer_hook use in arch/sh/oprofile In-Reply-To: <20090624122533.GA9510@linux-sh.org> References: <20090624131104.705c828d@skybase> <20090624112929.GB2079@linux-sh.org> <20090624121750.GB20564@elte.hu> <20090624122533.GA9510@linux-sh.org> X-Mailer: VM 8.0.12 under 22.2.1 (i486-pc-linux-gnu) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 611 Lines: 16 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/