Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755650AbYFXJ1o (ORCPT ); Tue, 24 Jun 2008 05:27:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750887AbYFXJ1f (ORCPT ); Tue, 24 Jun 2008 05:27:35 -0400 Received: from fg-out-1718.google.com ([72.14.220.157]:36101 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750751AbYFXJ1e (ORCPT ); Tue, 24 Jun 2008 05:27:34 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=vf3GFy871QAyLGwaOlXrN66efRk6oOMXV9IwWC0LbjYmQdbfKMktFIEHgxy0T5lR+5 Kq/cbKnFWX0WafyQdkwWGVZWnAnq+xL3VR5w9z6hZ9a7ORSp6eCNHWQY2mQxPIElYQNB yKxWQynPeE7Tkca2/vuQwUxlrR/ENNFKOgDfQ= Message-ID: Date: Tue, 24 Jun 2008 11:27:33 +0200 From: "Bart Van Assche" To: "Michael Kerrisk" Subject: Re: nanosleep() uses CLOCK_MONOTONIC, should be CLOCK_REALTIME? Cc: "Roman Zippel" , "Michael Kerrisk" , lkml , "Thomas Gleixner" , "john stultz" , "Ingo Molnar" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <485E00CD.9060503@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 787 Lines: 19 >> nor by adjtimex() (this last one is used by ntpd). > > That surprised me a little. So gradual adjustments to the time made > by adjtime() / adjtimex() really don't affect nanosleep()? Does the adjtime() system call still exist ? I could not find any information about this system call in the 2.6.25 kernel source code. Frequency adjustments made via the adjtimex() system call do affect nanosleep() of course (via timex::freq and/or timex::tick). Stepwise time adjustments, whether gradual or not, should not affect nanosleep(). Bart. -- 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/