Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756800AbZCLNif (ORCPT ); Thu, 12 Mar 2009 09:38:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755524AbZCLNiY (ORCPT ); Thu, 12 Mar 2009 09:38:24 -0400 Received: from sovereign.computergmbh.de ([85.214.69.204]:49396 "EHLO sovereign.computergmbh.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755076AbZCLNiX (ORCPT ); Thu, 12 Mar 2009 09:38:23 -0400 Date: Thu, 12 Mar 2009 14:38:19 +0100 (CET) From: Jan Engelhardt To: Linux Kernel Mailing List Subject: System tick rate Message-ID: User-Agent: Alpine 2.00 (LSU 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 663 Lines: 14 Hi, is there an "official" way of obtaining the current tick rate when CONFIG_NO_HZ? This is for a simple statistics display tool. Counting the interrupts from /proc/interrupts (calculating the difference between two timepoints) seems to work, though I have seen at least one x86 machine where both IRQ0 and the LOC counters increase, making it not entirely obvious which number to take as a base. Suggestions? -- 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/