Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757393AbZLKOGe (ORCPT ); Fri, 11 Dec 2009 09:06:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754420AbZLKOGe (ORCPT ); Fri, 11 Dec 2009 09:06:34 -0500 Received: from nlpi129.sbcis.sbc.com ([207.115.36.143]:55984 "EHLO nlpi129.prodigy.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753229AbZLKOGd (ORCPT ); Fri, 11 Dec 2009 09:06:33 -0500 Date: Fri, 11 Dec 2009 08:06:39 -0600 (CST) From: Christoph Lameter X-X-Sender: cl@router.home To: Ioannis Kyriakopoulos cc: linux-kernel@vger.kernel.org Subject: Re: Finding and chaniging registered clocksources In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (DEB 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: 926 Lines: 21 On Fri, 11 Dec 2009, Ioannis Kyriakopoulos wrote: > However, I don't know how to found out what clocksource Linux has assigned > for other activities apart from the one mentioned (e.g. for timekeeping) and > how to change it, if possible. Depends on the subsystem. Code can use time sources as needed but in general the standard clock is used as a common time base. > For example, I want to find out which clocksource getnstimeofday() is using. > It could be also useful if there is a way to see all the registered > clocksources in the system. getnstimeofday uses the syste, cllock that can be retrieved using /sys/devices/system/clocksource/clocksource0/current_clocksource -- 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/