From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Molnar Subject: Re: [PATCH 10 update 2x] PM: Measure suspend and resume times for individual devices Date: Sun, 6 Sep 2009 06:44:40 +0200 Message-ID: <20090906044440.GA29963@elte.hu> References: <200909041642.03774.rjw@sisk.pl> <20090904191205.GA28408@elte.hu> <200909042356.59024.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <200909042356.59024.rjw@sisk.pl> Sender: linux-pci-owner@vger.kernel.org To: "Rafael J. Wysocki" Cc: Thomas Gleixner , Alan Stern , linux-pm , LKML , Len Brown , Pavel Machek , ACPI Devel Maling List , Arjan van de Ven , Zhang Rui , Dmitry Torokhov , Linux PCI List-Id: linux-acpi@vger.kernel.org Thanks Rafael, the code looks a lot more natural IMHO. this bit: > +#ifdef DEBUG > +static void dbg_get_time(struct timeval *start) > +{ > + do_gettimeofday(start); > +} is a plain wrapper over gettimeofday so you might want to inline it. (although GCC will do it too most of the time) Ingo