Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752428AbbKKNcr (ORCPT ); Wed, 11 Nov 2015 08:32:47 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:59634 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752023AbbKKNcp (ORCPT ); Wed, 11 Nov 2015 08:32:45 -0500 From: Arnd Bergmann To: Stefano Stabellini Cc: Thomas Gleixner , John Stultz , "linux-arm-kernel@lists.infradead.org" , xen-devel@lists.xensource.com, Ian.Campbell@citrix.com, Peter Zijlstra , lkml , Ingo Molnar Subject: Re: [PATCH v2 1/7] timekeeping: introduce __current_kernel_time64 Date: Wed, 11 Nov 2015 14:31:33 +0100 Message-ID: <23540141.N5sax8EYBi@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:zoW8VGQWNaVqBtZDOTGdDfqdioVhGLTIa4nyKN5wTW+RAc4zcHj 67duQdNtD32WrduYPec9vhsbMwbQt0BjRGXBEtvYsjIy+cd0OQfBhEfgs+h8+Yfy8SM/qw7 3aQ2ZOR++fztM60jZhWuabEDTKKjpbiEUg1sfiFHsJ3FcNnpp/pD5yo5N/8LBDJT5Q3HRHy 7egT2v9Jf5GAeEdmATayw== X-UI-Out-Filterresults: notjunk:1;V01:K0:pttd2cEzDNo=:6V7T9LuZP6mQKjYZsCeWqM w57GgQMHiT+KeUF+e3g5d+enalEHOD1mX4T3hF0SEXF0KdT2TSeiZz+nzxSxUTssdhjAnn7tM omSptbZuhm7r9e4ZoC6Cxnx+J9tnaizozel6yvjiOPaNGqAgsumqU0Bncjk1fcbapPjZ/kok+ 8DC6irxcsHmiCJnMacs95x6zvCRvLfmITq3D6J72E9iXjLhJxdIGIZXrmtLwAW/YE8aG2AFJB FjaFyGvqSXEcHGLQOQU25KBaHkhjAm1mm7kWb1jnd5/3VjKE4yDlXEFHIeBI8mx+RVN8rY8b1 LxOm6tAFSdlnQUq2NuawWfUFwh7hWdY4LPWSX+0I2krhcdM8ajUPr/KoRcnXSEApGs7+kCn7j nUdjfMmLvQC2KXqk+Vo0y6zH5QozJfLghSDTv9FIkhwZk7woV31dp0R0+ZgHBZzVgDOVcjV9H dFBj+YkBD2T41d+8S1Vcljkj1lcDENVS/K49X6Vkc4Fu6p01O5RHFOD75NQsBkDfDJT5rA21P rgN8OZB42nUsATsghOl/5a5b7VCizmgGVhZ0sdWnC2z1bhljQBvcx3szoQbJYDEcODOwUAl2P Skw5oUoIvp3URnQyrq2L0ca8gudVeTVZAF6r8AHrYlYAG/V4+xQhSFZKNlJc6xwNyallEfTFJ wtUIbfdEOi+1tBCqMGHDyit6/ZV9cDvPlnTTaPQiqKFeTPWH/XyDLM1TwDkrEqqRQOiUWThlM izV2oxCFtBM75dQJ Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1591 Lines: 33 On Wednesday 11 November 2015 11:51:26 Stefano Stabellini wrote: > On Tue, 10 Nov 2015, Thomas Gleixner wrote: > > On Tue, 10 Nov 2015, John Stultz wrote: > > > I'm sort of objecting to a different issue, where the > > > __current_kernel_time() implementation probably shouldn't be grabbing > > > the tk_core.timekeeper directly, and instead should take a passed > > > pointer to a timekeeper. The vdso/pv_clock usage should have a > > > timekeeper passed to them that they could use. > > > > That usage of __current_kernel_time() in that xen notifier is silly to > > begin with. The notifier gets already called with a pointer to the > > time keeper. That xen implementation just does not use it. > > > > We extract exactly that information in the vdso updates without > > calling back into the core code. So for solving that xen thing we do > > not need a 64 bit variant of __current_kernel_time() at all. The > > notifier has the pointer to the timekeeper and can just grab data from > > there. > > Many thanks for the suggestion, I'll do that. > Should I open code tk_xtime in the xen notifier, or should I export it > in timekeeper_internal.h? tk_xtime is a 'static inline' function, I don't see a good way to make that accessible, and you really want the elements separately, so I'd open-code it without going through timespec64. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/