Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1256256imm; Wed, 20 Jun 2018 14:32:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJXbJDC6znZOoobIk0ebY6nNtl8CU57ON/VgU4fhMMXfodPZva78i8Q4mPkPzS/k9TVpUAa X-Received: by 2002:a17:902:700a:: with SMTP id y10-v6mr26007388plk.249.1529530364420; Wed, 20 Jun 2018 14:32:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529530364; cv=none; d=google.com; s=arc-20160816; b=U7d6m0vBRm+eJkC540DK78rmNeopu116v4RQ8ff0yRysd8rC6zFi6Woelp3uxsSLQo 9K7WgAnE4q4ts8uwfTRL1ZPFMiBKyr7+k5xkZxJdGZRXia2UaWPJSXRXOwqzPVdU1gyq ZEChQUGAj00muDZpIstV2GVdCjmcVqN1tXtSxrIvk3p3KWDiniuGbqMGP/ddX9JAoRTw DhU5NYiGy7Z7nwWNtIhiDa7JJe2nOBSNrDtn0P3sdSSN1V5ehnGec7eQQOZbKzYi+S1x TtzTgVBpel/AnHAnOzTcivEzH4crJewFofmJYO0DM8o+DQEWXABw0XzPAaI0O8bZYIUt H8Hw== 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=Dy9i5bpgX+9vpFIAGc/eGOrAZP9RdoDvYS1mMu7JWLQ=; b=b8KxXjcwRWMuOtiKCVD9ojUaXJ8TeJyRonRbBxGBEcbmY9/bYR8XO5EOIEX3STXxoF HJSnRms8mte4ajB+MS+mhlkE1lg2mKQyw2AZVB8sGPuxzrkBDslpDSXgoC64Xls7aE4i uTxgMHPzvFTJEgLgdwidhnQ3dX9etuVJY2Ckceu27Rik1+/h864ZN6yCv27qk/Gc+FXc GDjhvdS6p6JrMnMzshhugAuS3Li+f/jReS1gYtzyZCzu6IpzJ5cufQlzMlqZv8z2vve4 18/wTpAlL03ft7kXx/hlajOphhodQn/6yp4+i4QoNS/DMU0u9Rt9BFmhi7orreQhgUDo J6XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=U2aMex46; 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 f67-v6si3208499plb.460.2018.06.20.14.32.30; Wed, 20 Jun 2018 14:32:44 -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-2017-10-26 header.b=U2aMex46; 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 S933653AbeFTVa5 (ORCPT + 99 others); Wed, 20 Jun 2018 17:30:57 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:50124 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933326AbeFTVa4 (ORCPT ); Wed, 20 Jun 2018 17:30:56 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5KLQDsB067011 for ; Wed, 20 Jun 2018 21:30:55 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-2017-10-26; bh=Dy9i5bpgX+9vpFIAGc/eGOrAZP9RdoDvYS1mMu7JWLQ=; b=U2aMex46jUlMr/R52nAehHL26krB6BhkILzD2ac/ScDZ4JYBpyBKJkGFdKKtjTMCHojo 073QXWHDORexxCJ78iY4yLq2hOCWQbDmEiYjEMn1PJmO+5FWwufZvQvSxbLO9WhZ6/yO F+rWB2VXY6dT5Wiki8CIb7HMDaTUaSBT9fkZMb0AcZcl3G56mLvqynUjavQa9QkXPiyX 7Dm86wQEEiLOw0T5Y+UiDEuBcdQNpscvbZNfgzLYoYxGSnEQDpdM+J7ABDgVqt9ic3IW FwQxboY9S6mMJmRyylwF+gNnwqUfF76d0fnWzcsM8sr2Gj6uJi7sneeeIZHUfZxiL+PG og== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2120.oracle.com with ESMTP id 2jmtgwxadf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 20 Jun 2018 21:30:55 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w5KLUs4E026104 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 20 Jun 2018 21:30:54 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w5KLUsBE002204 for ; Wed, 20 Jun 2018 21:30:54 GMT Received: from mail-oi0-f49.google.com (/209.85.218.49) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 20 Jun 2018 14:30:53 -0700 Received: by mail-oi0-f49.google.com with SMTP id e8-v6so983769oii.2 for ; Wed, 20 Jun 2018 14:30:53 -0700 (PDT) X-Gm-Message-State: APt69E32JwW7wsBAxu19D+jrDYG21wOycWngnZkMP4BuJ9bhlZX45I81 q/jT2VF6TROz/bi4ZMLfzXZtUosEu7dM6OULS+4= X-Received: by 2002:aca:e5d2:: with SMTP id c201-v6mr13472081oih.191.1529530253307; Wed, 20 Jun 2018 14:30:53 -0700 (PDT) MIME-Version: 1.0 References: <20180615174204.30581-1-pasha.tatashin@oracle.com> <20180615174204.30581-8-pasha.tatashin@oracle.com> <20180620091532.GK2476@hirez.programming.kicks-ass.net> <20180620123208.GN2476@hirez.programming.kicks-ass.net> In-Reply-To: <20180620123208.GN2476@hirez.programming.kicks-ass.net> From: Pavel Tatashin Date: Wed, 20 Jun 2018 17:30:17 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v10 7/7] x86/tsc: use tsc early To: peterz@infradead.org Cc: tglx@linutronix.de, 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 Content-Type: text/plain; charset="UTF-8" X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8930 signatures=668702 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=3 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=659 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806200231 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, > That said; flipping static keys early isn't hard. We should call > jump_label_init() early, because we want the entries sorted and the > key->entries link set. It will also replace the GENERIC_NOP5_ATOMIC > thing, which means we need to also do arch_init_ideal_nop() early, but > since that is pure CPUID based that should be doable. > > And then something like the below could be used. I like the idea of making static branches available early, as it can be used in more places during boot. However, that should be part of a separate project, and a follow up cleanup can be done to places that benefit from it. Such as tsc.c and perhaps sched.c might benefit as well. Thank you, Pavel