From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752091AbZIFEpa (ORCPT ); Sun, 6 Sep 2009 00:45:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751242AbZIFEp3 (ORCPT ); Sun, 6 Sep 2009 00:45:29 -0400 Received: from mx2.mail.elte.hu ([157.181.151.9]:58048 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751034AbZIFEp2 (ORCPT ); Sun, 6 Sep 2009 00:45:28 -0400 Date: Sun, 6 Sep 2009 06:44:40 +0200 From: Ingo Molnar 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 Subject: Re: [PATCH 10 update 2x] PM: Measure suspend and resume times for individual devices 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 Content-Disposition: inline In-Reply-To: <200909042356.59024.rjw@sisk.pl> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.5 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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