From patchwork Sat Jan 24 01:43:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 43712 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f72.google.com (mail-ee0-f72.google.com [74.125.83.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4AB4C218DB for ; Sat, 24 Jan 2015 01:44:21 +0000 (UTC) Received: by mail-ee0-f72.google.com with SMTP id e49sf257786eek.3 for ; Fri, 23 Jan 2015 17:44:20 -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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=STOkp0wSwgYoiHczxQ2fmVM5mlZlZlykbAL1gpmkwK8=; b=OxjauuQX03SsHNH5444GKzsKgs/duHFzN2WQsOC8z9342LF6XsYxw/hDjirjZ3TGJb nBzvhiiS7a3toAKknJWAsxdkJJOOS6c1fzR7H+KpU9wCw4TkHMi1E6CWprizCs9rlqgH mRAmGcT1Iqnyjwon26ZmgDsufqDQv7RLMs+o0v8tzZ4OxpJ/oM6Sq9xbQvRLsrIqFyKM tSYry4+g8GWd73GKn2nuEhoLIiS2b+W4jfOad+g/XJw7szBKDRl46QrvmZPELektjOU+ zLYSxi89UwZPJ2qWzNvfDPdjNhfBvmMT7cuzIRyBLuLXmsyQYoifkk41+4IwPzRUq4mu 3q5w== X-Gm-Message-State: ALoCoQkdfWx7dWJX1zgra8LDJWfSFUk8UU3pK2i361MYeGqXIiYL1ov/zwQQwiQGQSo7t1gAa+aP X-Received: by 10.112.143.167 with SMTP id sf7mr1361965lbb.0.1422063860468; Fri, 23 Jan 2015 17:44:20 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.4.136 with SMTP id k8ls4193lak.21.gmail; Fri, 23 Jan 2015 17:44:20 -0800 (PST) X-Received: by 10.152.8.104 with SMTP id q8mr10347076laa.56.1422063860274; Fri, 23 Jan 2015 17:44:20 -0800 (PST) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id v6si2808485laa.111.2015.01.23.17.44.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 Jan 2015 17:44:20 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by mail-la0-f42.google.com with SMTP id ms9so502431lab.1 for ; Fri, 23 Jan 2015 17:44:20 -0800 (PST) X-Received: by 10.112.90.170 with SMTP id bx10mr10267157lbb.69.1422063860169; Fri, 23 Jan 2015 17:44:20 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.35.133 with SMTP id h5csp90265lbj; Fri, 23 Jan 2015 17:44:19 -0800 (PST) X-Received: by 10.66.146.193 with SMTP id te1mr15716489pab.109.1422063855703; Fri, 23 Jan 2015 17:44:15 -0800 (PST) Received: from mail-pd0-f182.google.com (mail-pd0-f182.google.com. [209.85.192.182]) by mx.google.com with ESMTPS id or10si3930837pbb.113.2015.01.23.17.44.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 Jan 2015 17:44:15 -0800 (PST) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.192.182 as permitted sender) client-ip=209.85.192.182; Received: by mail-pd0-f182.google.com with SMTP id z10so964053pdj.13 for ; Fri, 23 Jan 2015 17:44:14 -0800 (PST) X-Received: by 10.68.96.194 with SMTP id du2mr15689591pbb.107.1422063854795; Fri, 23 Jan 2015 17:44:14 -0800 (PST) Received: from localhost.localdomain (c-67-170-153-23.hsd1.or.comcast.net. [67.170.153.23]) by mx.google.com with ESMTPSA id ci17sm3111170pdb.70.2015.01.23.17.44.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Jan 2015 17:44:14 -0800 (PST) From: John Stultz To: lkml Cc: John Stultz , "pang.xunlei" , Arnd Bergmann , Thomas Gleixner , Ingo Molnar Subject: [PATCH 3/8] time: Expose get_monotonic_boottime64 for in-kernel use Date: Fri, 23 Jan 2015 17:43:55 -0800 Message-Id: <1422063840-2837-4-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1422063840-2837-1-git-send-email-john.stultz@linaro.org> References: <1422063840-2837-1-git-send-email-john.stultz@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: john.stultz@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.42 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , As part of the 2038 conversion process, add a get_monotonic_boottime64 accessor so we can depracate get_monotonic_boottime. Cc: pang.xunlei Cc: Arnd Bergmann Cc: Thomas Gleixner Cc: Ingo Molnar Signed-off-by: John Stultz --- include/linux/timekeeping.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h index 9148013..3eaae47 100644 --- a/include/linux/timekeeping.h +++ b/include/linux/timekeeping.h @@ -229,6 +229,11 @@ static inline void get_monotonic_boottime(struct timespec *ts) *ts = ktime_to_timespec(ktime_get_boottime()); } +static inline void get_monotonic_boottime64(struct timespec64 *ts) +{ + *ts = ktime_to_timespec64(ktime_get_boottime()); +} + static inline void timekeeping_clocktai(struct timespec *ts) { *ts = ktime_to_timespec(ktime_get_clocktai());