From patchwork Thu Apr 30 08:12:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 47763 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E75DF2121F for ; Thu, 30 Apr 2015 08:12:31 +0000 (UTC) Received: by lbos2 with SMTP id s2sf12420990lbo.2 for ; Thu, 30 Apr 2015 01:12:30 -0700 (PDT) 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:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=11h044fDxgA0Vi11w47/56lCGFu5097a9keOa+18imY=; b=K/CqA4/x7G4pfEI2XM14h96SGrCVmkNO98PS/BkQXkcHn2Hj4h6FBu6Pv0NMCKFK5i WHFjqCXWc0/sbFKBXs6awXhxqiyojTY/9VjIM3rZF3OwwatuZtG8KXYYngHF2x73Mnnw 0Mj8g+OC8Pa1jh+xQ8UJZ5rJdncjXD1/SJSW6M3ulcIhrtwfLLK5XI8YJLBtYCpVyhFm 7icmXKcmoXKRMouhyumKrYOg2yG/NhxEkc47NewtS+HSaITWGmsO4SLCkCYh3T/vxmre yvP+GPXfXYETItHzOT2e6Ike6AxNxRoajWNz4n4ySQ4DpcGoJET54Bj2FBCTLE5kzb3i M73w== X-Gm-Message-State: ALoCoQkyttYOHcC5ZgPR6QyLU4w9M0Hmjyx4h5F+CViK4ia34OX3C/FaYRdawCVIlWK3C1ntlyyV X-Received: by 10.152.26.134 with SMTP id l6mr1856451lag.10.1430381550418; Thu, 30 Apr 2015 01:12:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.22.72 with SMTP id b8ls352542laf.81.gmail; Thu, 30 Apr 2015 01:12:30 -0700 (PDT) X-Received: by 10.152.5.194 with SMTP id u2mr2735310lau.3.1430381550210; Thu, 30 Apr 2015 01:12:30 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id o2si1171756lah.165.2015.04.30.01.12.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Apr 2015 01:12:30 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbbzk7 with SMTP id zk7so38654167lbb.0 for ; Thu, 30 Apr 2015 01:12:30 -0700 (PDT) X-Received: by 10.112.150.100 with SMTP id uh4mr2691733lbb.112.1430381550106; Thu, 30 Apr 2015 01:12:30 -0700 (PDT) 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.67.65 with SMTP id l1csp2964783lbt; Thu, 30 Apr 2015 01:12:29 -0700 (PDT) X-Received: by 10.68.132.233 with SMTP id ox9mr5851564pbb.83.1430381548246; Thu, 30 Apr 2015 01:12:28 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cq2si2417155pbb.67.2015.04.30.01.12.27; Thu, 30 Apr 2015 01:12:28 -0700 (PDT) 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 S1751410AbbD3IMW (ORCPT + 28 others); Thu, 30 Apr 2015 04:12:22 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:33011 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750821AbbD3IMU (ORCPT ); Thu, 30 Apr 2015 04:12:20 -0400 Received: by pacwv17 with SMTP id wv17so52829474pac.0 for ; Thu, 30 Apr 2015 01:12:19 -0700 (PDT) X-Received: by 10.70.33.33 with SMTP id o1mr6064052pdi.132.1430381539761; Thu, 30 Apr 2015 01:12:19 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([114.30.40.58]) by mx.google.com with ESMTPSA id fe3sm1358362pbd.76.2015.04.30.01.12.16 (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Apr 2015 01:12:18 -0700 (PDT) From: Baolin Wang To: tglx@linutronix.de Cc: arnd@arndb.de, linux-kernel@vger.kernel.org, baolin.wang@linaro.org, y2038@lists.linaro.org Subject: [PATCH v2 04/15] posix timers:Introduce the 64bit methods with timespec64 type for k_clock structure Date: Thu, 30 Apr 2015 16:12:07 +0800 Message-Id: <1430381527-26349-1-git-send-email-baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: baolin.wang@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.217.171 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: , List-Help: , List-Archive: List-Unsubscribe: , This patch introduces the new methods with timespec64/itimerspec64 type for k_clcok structure,converts the timepsec type to timespec64 type in k_clock structure and converts the itimerspec type to itimerspec64 type to ready for 2038 issue. Signed-off-by: Baolin Wang --- include/linux/posix-timers.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/linux/posix-timers.h b/include/linux/posix-timers.h index 907f3fd..35786c5 100644 --- a/include/linux/posix-timers.h +++ b/include/linux/posix-timers.h @@ -98,9 +98,13 @@ struct k_itimer { struct k_clock { int (*clock_getres) (const clockid_t which_clock, struct timespec *tp); + int (*clock_getres64) (const clockid_t which_clock, struct timespec64 *tp); int (*clock_set) (const clockid_t which_clock, const struct timespec *tp); + int (*clock_set64) (const clockid_t which_clock, + const struct timespec64 *tp); int (*clock_get) (const clockid_t which_clock, struct timespec * tp); + int (*clock_get64) (const clockid_t which_clock, struct timespec64 *tp); int (*clock_adj) (const clockid_t which_clock, struct timex *tx); int (*timer_create) (struct k_itimer *timer); int (*nsleep) (const clockid_t which_clock, int flags, @@ -109,10 +113,15 @@ struct k_clock { int (*timer_set) (struct k_itimer * timr, int flags, struct itimerspec * new_setting, struct itimerspec * old_setting); + int (*timer_set64) (struct k_itimer *timr, int flags, + struct itimerspec64 *new_setting, + struct itimerspec64 *old_setting); int (*timer_del) (struct k_itimer * timr); #define TIMER_RETRY 1 void (*timer_get) (struct k_itimer * timr, struct itimerspec * cur_setting); + void (*timer_get64) (struct k_itimer *timr, + struct itimerspec64 *cur_setting); }; extern struct k_clock clock_posix_cpu;