Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1913205imm; Thu, 19 Jul 2018 09:51:08 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeZye33m0moEqaFVbcVMOamPRxXbezKXkqWSFteEeZ0lr7ZJP5T++EnsGgDKDzK27wwqAZf X-Received: by 2002:a65:60cd:: with SMTP id r13-v6mr10734009pgv.232.1532019068538; Thu, 19 Jul 2018 09:51:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532019068; cv=none; d=google.com; s=arc-20160816; b=wtc98vqdHEnk7plb5JzbEBghLP9bWjE94D2TbeMFj52ru92FSMwuE+RlmzQ2lRsGVU lqUMuk8ZeNrzRzxQdeM9i3TFE4YsRZ8IVrmoikv2f9zyBteYknXSv5zIUNgSQrbVDPMX WsrznahX5uMpXD48MiecUFL4oo+5IV/HHvfFhzy0dElkmERCreUeiZmMi0sWsixuDuW3 jKRlCxv/oOv/HrNxLuQFXF/zzeVfmIsh/EyAzPDv7kPMI1h6SG87gJVXJyuz/mjtRPCE 0FV/pp1iUZ/x8DPaj7RKmFR1R4RQ8zM8DzwQKXU5h+enH5JGalukad+HoyhFmJsR42C0 kYJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=QgWD6uaBfqchZxuaYHJUzK/cVDuKIOiMNXckq5gSxQY=; b=oT5VlJ9/RVluPLaf9GNRuhWA6J95Z5spfQFJcFmJkEi1QKFes/IhimPGf8SKpS7813 U56UgslnRwIt09MF3AYcX4zbkwKukYsMHgAohGTpdIrzTum4Tefort3QFh3bjuOqvCHO Jeu8E4HY8ozHRFJbdXZldbs8/kVBaaqp+uaxgEb6jQGWAV/5SfVZU8qnK7puCbUmw/DT 3jl4vrSgxhbizkenuxAeOOWtgw+deTAZTFGnGGT04UKvHGKe3HQ95KsJ7v8UQaJDLeR9 t/BeJlVFuMiXW5Na6bXGFYbTdx2XhmHmx1iZ1yGvJvcdZZHrElA51mQVdmWo9iBqfDUk C0+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b="XnqB5Z5/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 78-v6si6145113pfn.205.2018.07.19.09.50.53; Thu, 19 Jul 2018 09:51:08 -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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b="XnqB5Z5/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731832AbeGSReT (ORCPT + 99 others); Thu, 19 Jul 2018 13:34:19 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:48756 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731105AbeGSReT (ORCPT ); Thu, 19 Jul 2018 13:34:19 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w6JGdL3V159007; Thu, 19 Jul 2018 16:50:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : references : in-reply-to : from : date : message-id : subject : to : cc : content-type; s=corp-2018-07-02; bh=QgWD6uaBfqchZxuaYHJUzK/cVDuKIOiMNXckq5gSxQY=; b=XnqB5Z5/jqvKLc8AkVKm/bRjR0MPtrzuDoe2VkZKXPRShqsdsfiWyYz8fKqf6PP5yEsK RV1rEqTBHTe93Tm7Wgs6ckeUYZ8iEeQCRlfonMkO8zfFrSllb44CNgwx62nzKFXjD9Fd sV1ZhC1DTzxdPG8lw3mOIgj5Yh09LODX9sjZ2hoJ7I9lPocfiTUdBiMn+VKPUFsx3yCH 8wzTNKzGiHWe217QRDwux3KOpwmc10Nnig27PEuXJJdfA9bA7LFxJsoFb32H5GpSUTwH 44EBG9TC4WgJij3GLj67SjDvhbRe2GoGAgfmFNiz4qqJCMF7P82ACSV8um4MQ2OlUggs 4A== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2k9yjx80fd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 19 Jul 2018 16:50:17 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w6JGoESY028075 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 19 Jul 2018 16:50:14 GMT Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w6JGoEbH009169; Thu, 19 Jul 2018 16:50:14 GMT Received: from mail-oi0-f50.google.com (/209.85.218.50) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 19 Jul 2018 16:50:14 +0000 Received: by mail-oi0-f50.google.com with SMTP id n84-v6so16177145oib.9; Thu, 19 Jul 2018 09:50:14 -0700 (PDT) X-Gm-Message-State: AOUpUlGRoAga3pGP0gzV/OpScYvKubtAXSMKnbcNE3Fwu8qXL1/DMVcs 0w99xJO4e6pCMSe1RPchYRWfcxY0Xhni97TDqlE= X-Received: by 2002:aca:3bc2:: with SMTP id i185-v6mr12408933oia.156.1532019013951; Thu, 19 Jul 2018 09:50:13 -0700 (PDT) MIME-Version: 1.0 References: <20180718022211.6259-1-pasha.tatashin@oracle.com> <20180718022211.6259-21-pasha.tatashin@oracle.com> <20180719103340.GA2494@hirez.programming.kicks-ass.net> <4295075b-8a0f-1723-2e80-1bbd2f038846@oracle.com> In-Reply-To: From: Pavel Tatashin Date: Thu, 19 Jul 2018 12:49:37 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v14 20/25] x86/tsc: calibrate tsc only once To: tglx@linutronix.de Cc: peterz@infradead.org, Steven Sistare , Daniel Jordan , linux@armlinux.org.uk, schwidefsky@de.ibm.com, Heiko Carstens , John Stultz , sboyd@codeaurora.org, x86@kernel.org, LKML , mingo@redhat.com, hpa@zytor.com, douly.fnst@cn.fujitsu.com, prarit@redhat.com, feng.tang@intel.com, Petr Mladek , gnomes@lxorguk.ukuu.org.uk, linux-s390@vger.kernel.org, boris.ostrovsky@oracle.com, jgross@suse.com, pbonzini@redhat.com Content-Type: text/plain; charset="UTF-8" X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8958 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=3 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=419 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807190176 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > So create two functions. native_...early..() and native....(). The early > one does not contain the hpet/pmtimer stuff and it replaces the ops.pointer > with the late one which contains all of it. Good idea. Actually, the late one will contain only hpet/pmtimer and I will set it only if tsc frequency was not determined only. Thank you, Pavel