Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752256AbbKMWeN (ORCPT ); Fri, 13 Nov 2015 17:34:13 -0500 Received: from mga11.intel.com ([192.55.52.93]:36360 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750918AbbKMWeM (ORCPT ); Fri, 13 Nov 2015 17:34:12 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,289,1444719600"; d="scan'208";a="819496592" Date: Fri, 13 Nov 2015 14:33:16 -0800 From: Jacob Pan To: John Stultz Cc: Peter Zijlstra , Ingo Molnar , Thomas Gleixner , LKML , Arjan van de Ven , Srinivas Pandruvada , Len Brown , Rafael Wysocki , Eduardo Valentin , Paul Turner , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH 1/4] ktime: add a roundup function Message-ID: <20151113143316.29580923@icelake> In-Reply-To: References: <1447444387-23525-1-git-send-email-jacob.jun.pan@linux.intel.com> <1447444387-23525-2-git-send-email-jacob.jun.pan@linux.intel.com> Organization: OTC X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 842 Lines: 22 On Fri, 13 Nov 2015 12:11:01 -0800 John Stultz wrote: > Could you add a comment as to what the function does, and use some > better variable names here to make it more immediately obvious what is > being done here? > > Something like: > /** > * ktime_roundup - Rounds value up to interval chunk > * @ value: Value to be rounded up > * @ interval: interval size to round up to > * > * Rounds a value up to the next higher multiple of an interval size > */ > static inline ktime ktime_roundup(ktime_t value, ktime_t interval) will do. thank you for taking the time. -- 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/