Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2044423imm; Mon, 16 Jul 2018 00:47:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfWBhMMTLcVClSQXDWhFi2tiYVHDVGZwwB47+PskaQa4QVXmh1PaMH+84Hq39lPtXYhU+3K X-Received: by 2002:a62:283:: with SMTP id 125-v6mr16971043pfc.51.1531727270299; Mon, 16 Jul 2018 00:47:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531727270; cv=none; d=google.com; s=arc-20160816; b=TVXbwIwB3pxewaEmFAH/hYEFhfjxKqq8Igbancx1VKPK5ibC50ITqZpYUFsUaMg8tR Io+Tr7ppeT+gKcm/dnMmcPBQN29gjmxtM8FVBAXXgOk55jCjpdBBczY4rx4ae6fUcwAq fEytO171+qdLzsOtI9lg8Qk49yS1qUEoLSPsHOFqrWMU4T7lu1VC3C0v3TE/sW4KpqCf uB50v8yZqKcpLaThr++0F2fQS22AoKQWnQyIbm2786dPjE9saof1QvFAZBVet7AA6WeF ApXQGSPmtRoqPTyx/hiwOGzwhR1wZpFc8Xto/okRBiNaFhJNYz8KYvtL0ipoECrV+YNc Uy2Q== 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 :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=u9yciCdtM3GeypSXOdkSGFqvL9114nUye8RHhIPc0TY=; b=VlFqszIHa1cZnVyBDMEbKFZNgAqcZWMnH2A92gX4Y2p/Rv649lDTHwfUa6J0XNWRWQ a2G2bqUQufTRN9MwmpYP5J7UaxCw+ODE7EZWeaayvxOhWgcoQIpEh8B0hshvLbMhuBUi CPf3eJjyJXhjKgG51x9btTDk2Kwzdbju56UlyarCvpCrGU/4YSE8gCUWnIAxiUkPL2Xs srDdKn00i4YDYgny/RLnVL66YdelqChFJ9KgyGhLWA3F9TI3en9YUXZ5LJBAPOcg2fxG Lj5DiVi7pNlikhvTYRiBBYy6hx/Q/4gjIRkM7G4vjr7Vl7NXH1qC4UztifmJhNRe6FYs cAqQ== 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 193-v6si28328271pgh.407.2018.07.16.00.47.35; Mon, 16 Jul 2018 00:47:50 -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 S2389733AbeGPIM3 (ORCPT + 99 others); Mon, 16 Jul 2018 04:12:29 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51200 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728470AbeGPIM3 (ORCPT ); Mon, 16 Jul 2018 04:12:29 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 65DF8CED; Mon, 16 Jul 2018 07:45:52 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Borislav Petkov , Andy Lutomirski , Borislav Petkov , Brian Gerst , Denys Vlasenko , "H. Peter Anvin" , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , "Srivatsa S. Bhat" , "Matt Helsley (VMware)" , Alexey Makhalov , Bo Gan Subject: [PATCH 4.4 27/43] x86/vdso: Use static_cpu_has() Date: Mon, 16 Jul 2018 09:36:32 +0200 Message-Id: <20180716073514.876553114@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180716073511.796555857@linuxfoundation.org> References: <20180716073511.796555857@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Borislav Petkov commit 8c725306993198f845038dc9e45a1267099867a6 upstream ... and simplify and speed up a tad. Signed-off-by: Borislav Petkov Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Brian Gerst Cc: Denys Vlasenko Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/1453842730-28463-10-git-send-email-bp@alien8.de Signed-off-by: Ingo Molnar Signed-off-by: Srivatsa S. Bhat Reviewed-by: Matt Helsley (VMware) Reviewed-by: Alexey Makhalov Reviewed-by: Bo Gan Signed-off-by: Greg Kroah-Hartman --- arch/x86/entry/vdso/vma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/entry/vdso/vma.c +++ b/arch/x86/entry/vdso/vma.c @@ -255,7 +255,7 @@ static void vgetcpu_cpu_init(void *arg) #ifdef CONFIG_NUMA node = cpu_to_node(cpu); #endif - if (cpu_has(&cpu_data(cpu), X86_FEATURE_RDTSCP)) + if (static_cpu_has(X86_FEATURE_RDTSCP)) write_rdtscp_aux((node << 12) | cpu); /*