Message ID | 1418903522-19137-2-git-send-email-zhang.chunyan@linaro.org |
---|---|
State | Accepted |
Commit | 41fbf3b39d5eca01527338b4d0ee15ee1ae1023c |
Headers | show
Return-Path: <patchwork-forward+bncBDX7VGEWU4HBBJUAZOSAKGQEAFDNADI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D669826C8B for <linaro@patches.linaro.org>; Thu, 18 Dec 2014 11:53:11 +0000 (UTC) Received: by mail-wg0-f71.google.com with SMTP id l18sf636322wgh.10 for <linaro@patches.linaro.org>; Thu, 18 Dec 2014 03:53:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=zXbkRr1/ps4F5GkP/4Gznc98FjGxgS99mVNGqK4cUFA=; b=ev5+LwzHhUffUhDUP+yFXm6iY7qH7aMEfJMZJtNbOhr9WiC9aTLGZp6zK3s2o0qsR+ N16EhX7TUEqEnnmOUZikHHv9vtVxi3tQm2kWk9kW4pC6UJ/wMFXK8o2dQ7V0HoBYt5Hb sgWxwKarMSbInyBnrJkL9U8wAV35o9LyjJ8ID2LVHpC9/e5tBS+OSYI1cWN//Z/2VUhZ KMceItUzIwlEQq5vTNgs1DvagWF81Pe5O07yicitqiA7J72MQIRzkMECsnZT+jNKLDOM 4smPWRR0Lx9WI9si6U6L3EoSnYf3twcMX5QCGYuW8/J/AwSDCymZ29lQgw8yWTVsUrke g/AA== X-Gm-Message-State: ALoCoQlwe682WktmPrmhwYfxTmlEcNgc2AIZKxVgr0fse4WRDXgC4OXMaBvF4NAikSJBnm424yGu X-Received: by 10.112.166.102 with SMTP id zf6mr228325lbb.12.1418903590650; Thu, 18 Dec 2014 03:53:10 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.5 with SMTP id m5ls1023533laj.71.gmail; Thu, 18 Dec 2014 03:53:10 -0800 (PST) X-Received: by 10.112.202.71 with SMTP id kg7mr1829954lbc.16.1418903590315; Thu, 18 Dec 2014 03:53:10 -0800 (PST) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id r6si6690594laa.10.2014.12.18.03.53.10 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Dec 2014 03:53:10 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by mail-la0-f41.google.com with SMTP id hv19so847621lab.28 for <patchwork-forward@linaro.org>; Thu, 18 Dec 2014 03:53:10 -0800 (PST) X-Received: by 10.112.141.42 with SMTP id rl10mr1813338lbb.98.1418903590192; Thu, 18 Dec 2014 03:53:10 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.142.69 with SMTP id ru5csp1678397lbb; Thu, 18 Dec 2014 03:53:09 -0800 (PST) X-Received: by 10.70.128.45 with SMTP id nl13mr2708061pdb.126.1418903586821; Thu, 18 Dec 2014 03:53:06 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wj9si9541685pbc.252.2014.12.18.03.53.05; Thu, 18 Dec 2014 03:53:06 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752176AbaLRLxC (ORCPT <rfc822;jens.wiklander@linaro.org> + 27 others); Thu, 18 Dec 2014 06:53:02 -0500 Received: from mail-pa0-f43.google.com ([209.85.220.43]:64573 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752037AbaLRLw6 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 18 Dec 2014 06:52:58 -0500 Received: by mail-pa0-f43.google.com with SMTP id kx10so1275451pab.16 for <linux-kernel@vger.kernel.org>; Thu, 18 Dec 2014 03:52:58 -0800 (PST) X-Received: by 10.67.5.2 with SMTP id ci2mr2854189pad.36.1418903578419; Thu, 18 Dec 2014 03:52:58 -0800 (PST) Received: from chunyanzhangubtpc.spreadtrum.com ([203.160.240.81]) by mx.google.com with ESMTPSA id pb6sm6661708pbb.13.2014.12.18.03.52.50 (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Dec 2014 03:52:57 -0800 (PST) From: Chunyan Zhang <zhang.chunyan@linaro.org> To: m.chehab@samsung.com, david@hardeman.nu, uli-lirc@uli-eckhardt.de, hans.verkuil@cisco.com, julia.lawall@lip6.fr, himangi774@gmail.com, khoroshilov@ispras.ru, joe@perches.com, dborkman@redhat.com, john.stultz@linaro.org, tglx@linutronix.de, davem@davemloft.net, dwmw2@infradead.org, computersforpeace@gmail.com, arnd@linaro.org Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, zhang.lyra@gmail.com Subject: [PATCH 1/3] ktime.h: Introduce ktime_ms_delta Date: Thu, 18 Dec 2014 19:52:00 +0800 Message-Id: <1418903522-19137-2-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1418903522-19137-1-git-send-email-zhang.chunyan@linaro.org> References: <ktime-mtd-rc-v1> <1418903522-19137-1-git-send-email-zhang.chunyan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: zhang.chunyan@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/include/linux/ktime.h b/include/linux/ktime.h index c9d645a..891ea92 100644 --- a/include/linux/ktime.h +++ b/include/linux/ktime.h @@ -186,6 +186,11 @@ static inline s64 ktime_us_delta(const ktime_t later, const ktime_t earlier) return ktime_to_us(ktime_sub(later, earlier)); } +static inline s64 ktime_ms_delta(const ktime_t later, const ktime_t earlier) +{ + return ktime_to_ms(ktime_sub(later, earlier)); +} + static inline ktime_t ktime_add_us(const ktime_t kt, const u64 usec) { return ktime_add_ns(kt, usec * NSEC_PER_USEC);