Received: by 10.223.164.202 with SMTP id h10csp2805467wrb; Tue, 28 Nov 2017 01:25:06 -0800 (PST) X-Google-Smtp-Source: AGs4zMa4AebOMW2WIz8UiEEflGYBTydMKX8Zc3kATlcYzJi+scuchb4Pn/Ux7bnFCd6qpvmiZDAP X-Received: by 10.84.130.66 with SMTP id 60mr14859963plc.325.1511861106614; Tue, 28 Nov 2017 01:25:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511861106; cv=none; d=google.com; s=arc-20160816; b=yu/7lMB6ODNqp5fmGD306KVUR9aEqBUFoUpZvpvKCiOTNfYPdpEWeza5tEB0+mvjGE 3OwE6DHnfY0TCpTyqZWHplPNT5bzr7yHgvxA9IPwi0lScgMDa9Us2QnRRc2bDY4HW03N C6HKbCxxTxNjDWQX/g8ss0+SyVFE9ZdrDIta9b/LudjNcRWVR7fpkUc6+4P+fSbuicTK mpRzr/S3xJCjUWEq3rw8yJz5gq3RTPfQUcHvCk8qMqpRrs2tq+HFVvaogqjmW2H5+JTD 10UMG5QinW8ORleQblr43TL+5y7dTnMi4rpbeOPGcK9MFBsalSNI3qltb1Ci0BgUGWN0 HbiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=OEFHBCnITWUMERnMLCBUGPyt8Ag5WgBwEromUR+Pg0w=; b=0kd1WEsKcYDSXR1fgsvfTxYDYzZcnqgQ3Ez7cO64ws4CkamfVXL0m2eTiTHqcn0dsy 8h8Dnv9cLQkoIMp5+GbQS3exEX8o5bl9Jg/mHhu4AeLkv4h3ZGhNiCyJt9fdjR99n4u6 Jz4Uw4cTbtNLnRVp4AY4bNYZOqOxu+NzP4oAW6bcX9kUS4bLpjH5yMn4kSBMP7hXXwba lS1/EBAHxWJT+SBVDAtqRdDrg8G0riu53eiESihYpCx4G8bJwl2lvNVGQei8+mH9kWeT NShJ2Eqr8vkueHzkhRjhwuwid97GDiU9kpZi2ALVY3msOrLlAS//NdDIL5kgL8AZBA4l ZjiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aruba.it header.s=a1 header.b=mLzOLNdF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j11si25345004pll.429.2017.11.28.01.24.54; Tue, 28 Nov 2017 01:25:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@aruba.it header.s=a1 header.b=mLzOLNdF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752218AbdK1JYL (ORCPT + 78 others); Tue, 28 Nov 2017 04:24:11 -0500 Received: from smtpcmd0756.aruba.it ([62.149.156.56]:56673 "EHLO smtpcmd0756.aruba.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751322AbdK1JYF (ORCPT ); Tue, 28 Nov 2017 04:24:05 -0500 X-Greylist: delayed 427 seconds by postgrey-1.27 at vger.kernel.org; Tue, 28 Nov 2017 04:24:05 EST Received: from [192.168.1.8] ([93.146.66.165]) by smtpcmd07.ad.aruba.it with bizsmtp id fMGl1w00p3Zw7e501MGlWk; Tue, 28 Nov 2017 10:16:57 +0100 Subject: Re: [PATCH] pps: parport: use timespec64 instead of timespec To: Arnd Bergmann Cc: y2038@lists.linaro.org, linux-kernel@vger.kernel.org References: <20171127114403.2599836-1-arnd@arndb.de> From: Rodolfo Giometti Message-ID: <4da3970c-fb8a-89ac-f7f0-98d9e7df147b@enneenne.com> Date: Tue, 28 Nov 2017 10:16:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171127114403.2599836-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aruba.it; s=a1; t=1511860617; bh=OEFHBCnITWUMERnMLCBUGPyt8Ag5WgBwEromUR+Pg0w=; h=Subject:To:From:Date:MIME-Version:Content-Type; b=mLzOLNdFQsw17WM2SxI4wrx13VLWWziW9jpemFmRsZWdNg4t3x53ELbmVnN/6drC2 Sk8w8l2dd+abOLNnSgR5TEvbqOrRqtbV8kcdO69J8rQxQZ2LvhcRDXv0tzHJkYl8qo kuwt85wKm1ICf/btZadZN42cxCOW3XrSX0Xy0SOklDqGvJM7b5L6CaTAf+4K3uNnTo PwIP8K3T4GAamgTxg3u/5wX9koIhKXa1n+oDErF+TG55juN3jJ3fWlHveRcNTUd87A KksQ5Q08Aygf9RaALKVJqjtnfP5WLFbtzrN8IyUKuODTcncdIvh68MgKXLi/yGOdc6 +n8RisHmc3A2w== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/11/17 12:43, Arnd Bergmann wrote: > getnstimeofday() is deprecated, so I'm converting this to use > ktime_get_real_ts64() as a safe replacement. I considered using > ktime_get_real() instead, but since the algorithm here depends > on the exact timing, I decided to introduce fewer changes > and leave the code that determines the nanoseconds since the > last seconds wrap untouched. > > It's not entirely clear to me whether we should also change the > time base to CLOCK_BOOTTIME or CLOCK_TAI. With boottime, we > would be independent of changes due to settimeofday() and only > see the speed adjustment from the upstream clock source, with > the downside of having the signal be at an arbirary offset > from the start of the UTC second signal. With CLOCK_TAI, we > would use the same offset from the UTC second as before and > still suffer from settimeofday() adjustments, but would be > less confused during leap seconds. > > Both boottime and tai only offer usable (i.e. avoiding ktime_t > to timespec64 conversion) interfaces for ktime_t though, so > either way, changing it wouldn't take significantly more work. > CLOCK_MONOTONIC could be used with ktime_get_ts64(), but would > lose synchronization across a suspend/resume cycle, which seems > worse. > > Signed-off-by: Arnd Bergmann Acked-by: Rodolfo Giometti -- HCE Engineering e-mail: giometti@hce-engineering.it GNU/Linux Solutions giometti@enneenne.com Linux Device Driver giometti@linux.it Embedded Systems phone: +39 349 2432127 UNIX programming skype: rodolfo.giometti Cosino Project - the quick prototyping embedded system - www.cosino.it Freelance ICT Italia - Consulente ICT Italia - www.consulenti-ict.it From 1585219542549285183@xxx Mon Nov 27 11:46:03 +0000 2017 X-GM-THRID: 1585219542549285183 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread