Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp5031297ybh; Tue, 6 Aug 2019 23:08:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsBu985Lr6/k6VCv9avVfoj6fj83M7ZgLThCZUbGgLrs9/QripkyOQ25V6tlGdva0pdQD5 X-Received: by 2002:a17:90a:32ec:: with SMTP id l99mr6887348pjb.44.1565158138543; Tue, 06 Aug 2019 23:08:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565158138; cv=none; d=google.com; s=arc-20160816; b=XAFWD8wx1S+85jbfYq4dFP61IgiIDah57nmgB5qLmcdmte7Vskm7A2IwUrbTgUVsTY fwj8dbf02C7HLjKs5alFu9gFUpneFzVT9UX4HRqtxASk2XA4dkHpdYHQlxX1DvYqtqdv LzOQuGjtvARdkpNecxNlOvYReLpxGUDzBjf/rFPkYuPc9Vz2wufIkGJWgJ1Z0321+zy/ 4phrchDx4yuairD4h/4FMK2PGMF7/TGYLmuusW5B9uvXVPgj4FcDafuSuBw4adE86klS wKjXF0+QI+0yFRplvUajAO05FVKRmv3SM78Bk1XjnrTGbkhYsZQSZB/5b6hE4ujl60NB P99A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=+Khk1RrpCW5M2R/u+08bW4Z645BqdQBTITn1QyPcu6I=; b=lySss5Je8fTEpTjQOZ9lw5h2HICs+xolG9CxrWSejMUUmp8m7BiAp8pgE8OLqhC5we ko0B6t2jVMI6eWRNaXS+wWAXSw7OgSXDh37UWnzMF/qiN/xeYOEnJ7lBsAe5f22aL+Dn Nh+lkb6TbOz8Uo5GC6CRJXday1ditV0xrzxGiCDAQO8xVSzp2Yn5slWxB4WPIiToZXCR 7UZjo0FVvRT48zUF0za6Pp3LIMKoTTsaDbQxXJzZqJfkRQ9zi4a4iCnrVLOReY+TbuEQ yrae9WXwV7anH0E3BJeVPu3+DAA4c/aOGOIdHe+kuJ/nQW0oo7G3I4sQe/hkR0XiZtcf +o2w== ARC-Authentication-Results: i=1; mx.google.com; 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 p17si45929299plo.310.2019.08.06.23.08.42; Tue, 06 Aug 2019 23:08:58 -0700 (PDT) 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; 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 S1726977AbfHGGHy (ORCPT + 99 others); Wed, 7 Aug 2019 02:07:54 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:47778 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726511AbfHGGHy (ORCPT ); Wed, 7 Aug 2019 02:07:54 -0400 Received: from p200300ddd742df588d2c07822b9f4274.dip0.t-ipconnect.de ([2003:dd:d742:df58:8d2c:782:2b9f:4274]) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hvF6k-0006jZ-QN; Wed, 07 Aug 2019 08:07:34 +0200 Date: Wed, 7 Aug 2019 08:07:28 +0200 (CEST) From: Thomas Gleixner To: Dmitry Safonov cc: linux-kernel@vger.kernel.org, Dmitry Safonov <0x7f454c46@gmail.com>, Andrei Vagin , Adrian Reber , Andy Lutomirski , Arnd Bergmann , Christian Brauner , Cyrill Gorcunov , "Eric W. Biederman" , "H. Peter Anvin" , Ingo Molnar , Jann Horn , Jeff Dike , Oleg Nesterov , Pavel Emelyanov , Shuah Khan , Vincenzo Frascino , containers@lists.linux-foundation.org, criu@openvz.org, linux-api@vger.kernel.org, x86@kernel.org Subject: Re: [PATCHv5 09/37] posix-clocks: Introduce CLOCK_MONOTONIC time namespace offsets In-Reply-To: <20190729215758.28405-10-dima@arista.com> Message-ID: References: <20190729215758.28405-1-dima@arista.com> <20190729215758.28405-10-dima@arista.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 29 Jul 2019, Dmitry Safonov wrote: > > +static inline void timens_add_monotonic(struct timespec64 *ts) > +{ > + struct timens_offsets *ns_offsets = current->nsproxy->time_ns->offsets; > + > + if (ns_offsets) > + *ts = timespec64_add(*ts, ns_offsets->monotonic); > +} This helper is not posix timer specific and should be introduced either in the name space patches or in a separate patch, Thanks tglx