Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751382AbVIXDQF (ORCPT ); Fri, 23 Sep 2005 23:16:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751386AbVIXDQF (ORCPT ); Fri, 23 Sep 2005 23:16:05 -0400 Received: from scrub.xs4all.nl ([194.109.195.176]:51393 "EHLO scrub.xs4all.nl") by vger.kernel.org with ESMTP id S1751382AbVIXDQE (ORCPT ); Fri, 23 Sep 2005 23:16:04 -0400 Date: Sat, 24 Sep 2005 05:15:34 +0200 (CEST) From: Roman Zippel X-X-Sender: roman@scrub.home To: Thomas Gleixner cc: Christopher Friesen , linux-kernel@vger.kernel.org, mingo@elte.hu, akpm@osdl.org, george@mvista.com, johnstul@us.ibm.com, paulmck@us.ibm.com Subject: Re: [ANNOUNCE] ktimers subsystem In-Reply-To: <1127458197.24044.726.camel@tglx.tec.linutronix.de> Message-ID: References: <20050919184834.1.patchmail@tglx.tec.linutronix.de> <1127342485.24044.600.camel@tglx.tec.linutronix.de> <43333EBA.5030506@nortel.com> <1127458197.24044.726.camel@tglx.tec.linutronix.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 985 Lines: 34 Hi, On Fri, 23 Sep 2005, Thomas Gleixner wrote: > The idea of ktimers is to use the requested time given by a timespec in > human time without any corrections, so we actually can avoid the above. > > Also doing time ordered insertion into a list introduces incompabilities > between 32/64 bit storage formats. Except that the (time) range of the list would be limited I don't really see a big difference. Anyway, the biggest cost is the conversion from/to the 64bit ns value and if its main use is sorting, you can use something like this: typedef union { u64 tv64; struct { #ifdef __BIG_ENDIAN u32 sec, nsec; #else u32 nsec, sec; #endif } tv; } ktimespec; To compare two time values the tv64 value is sufficient. bye, Roman - 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/