Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2338962imm; Sat, 28 Jul 2018 14:57:23 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfpvXojdZ/aVg+DDJvU6fshMPaMi1ebb9coGipVvR/pjIY9rryzj/llAjezqoFylSI/82yd X-Received: by 2002:a65:4587:: with SMTP id o7-v6mr11116761pgq.317.1532815043775; Sat, 28 Jul 2018 14:57:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532815043; cv=none; d=google.com; s=arc-20160816; b=Dy7cDFhhlj2tGbiO3T78VGYFo4XCDe9+zCCA1sL81St/LNC5mHOVqAQG1vHJJwl7He fhbxc8IAtOOFm+1FGvRv/aTGqD1wu5gK6FyX/9JOxYQrJ/S/Er96GnECKOvC1iCsrxY9 gAEcZgyd0ZkAUECLr13VVLX4iPnRDI4lhb7CGtdzmeH3fCMRinZ8GtImrleHxt4q3cFq ekdS/ruUArQD+9L1dAs7c5qynIzjKKgHYUcOK5iJEYEPQD+Zil6Y74tR72PN8zlUK2Tv edepYoOyO8KwKQvtfVuyLPgMyjNjS1I3L2+ZTcBwCy4jxKnDFalVclCqnMX+Olt9OCAS D4Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=PZadyjq70a0Zu7obynkqM+utc6p1gKHBTBsVYGHf6qA=; b=Vi2+waF6HUVwHDd4HMIjHmlByfE96ND3pPDFlrneIcOM0WF8xbQaQk0/B7iu4dXhmz qdB9nLDgcI+QvZNfiNsfBYC6oPIuwz0tFj1PhvFVTnj+B8K/tmm8HvfSBxTUNMFH3zIO sFQ12++nS2p/UB9b3RGEiow6R8Ztdnwqhg4mohPvyLWGcxn25U7uwEbMZiFsKkgJPnLB BF6G8toXzdhwe6YO7cdcQzkvUttlXmgO7+hzNMLmI6fz+uHoiqaR1XQ3ONcMOQlYaicO 5MxSnGKXgTVq1mMqxHpIlBfgfgMSrugP7cNwrQILi5dGySxixLwIYnhjomAjwCW0/hSv FxnA== 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 r22-v6si6669403pls.37.2018.07.28.14.56.56; Sat, 28 Jul 2018 14:57:23 -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 S1731401AbeG1XWU (ORCPT + 99 others); Sat, 28 Jul 2018 19:22:20 -0400 Received: from shelob.surriel.com ([96.67.55.147]:44084 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731299AbeG1XWU (ORCPT ); Sat, 28 Jul 2018 19:22:20 -0400 Received: from imladris.surriel.com ([96.67.55.152]) by shelob.surriel.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1fjXA0-0000QZ-Rj; Sat, 28 Jul 2018 17:54:00 -0400 From: Rik van Riel To: linux-kernel@vger.kernel.org Cc: kernel-team@fb.com, peterz@infradead.org, luto@kernel.org, x86@kernel.org, vkuznets@redhat.com, mingo@kernel.org, efault@gmx.de, dave.hansen@intel.com, will.daecon@arm.com, catalin.marinas@arm.com, benh@kernel.crashing.org, Rik van Riel Subject: [PATCH 08/10] arch,mm: add config variable to skip lazy TLB mm refcounting Date: Sat, 28 Jul 2018 17:53:55 -0400 Message-Id: <20180728215357.3249-9-riel@surriel.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180728215357.3249-1-riel@surriel.com> References: <20180728215357.3249-1-riel@surriel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a config variable indicating that this architecture does not require lazy TLB mm refcounting, because lazy TLB mms get shot down instantly at exit_mmap time. Signed-off-by: Rik van Riel --- arch/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index 1aa59063f1fd..1baf1a176dbf 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -237,6 +237,10 @@ config ARCH_HAS_FORTIFY_SOURCE config ARCH_HAS_SET_MEMORY bool +# Select if arch shoots down lazy TLB mms at exit time, instead of refcounting +config ARCH_NO_ACTIVE_MM_REFCOUNTING + bool + # Select if arch init_task must go in the __init_task_data section config ARCH_TASK_STRUCT_ON_STACK bool -- 2.14.4