Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754825AbbKMUOi (ORCPT ); Fri, 13 Nov 2015 15:14:38 -0500 Received: from www.linutronix.de ([62.245.132.108]:33726 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754225AbbKMUOg (ORCPT ); Fri, 13 Nov 2015 15:14:36 -0500 Date: Fri, 13 Nov 2015 15:13:45 -0500 (EST) From: Thomas Gleixner To: Jacob Pan cc: Peter Zijlstra , Ingo Molnar , John Stultz , LKML , Arjan van de Ven , Srinivas Pandruvada , Len Brown , Rafael Wysocki , Eduardo Valentin , Paul Turner Subject: Re: [PATCH 1/4] ktime: add a roundup function In-Reply-To: <1447444387-23525-2-git-send-email-jacob.jun.pan@linux.intel.com> Message-ID: 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> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 605 Lines: 22 On Fri, 13 Nov 2015, Jacob Pan wrote: > ktime roundup function can be used to keep timer aligned and > prevent drift for recurring timeouts. That tells me a use case, but not WHAT the function does and WHY we need it. > > +static inline ktime_t ktime_roundup(ktime_t x, ktime_t y) Kerneldoc comment of this function would be appreciated. Thanks, tglx -- 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/