From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5AA02C433E0 for ; Thu, 28 Jan 2021 12:19:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 119E664DDE for ; Thu, 28 Jan 2021 12:19:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231599AbhA1MSl (ORCPT ); Thu, 28 Jan 2021 07:18:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:52716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231203AbhA1MSh (ORCPT ); Thu, 28 Jan 2021 07:18:37 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0D2E764DD8; Thu, 28 Jan 2021 12:17:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611836276; bh=s3EDpFbWiBJJNv/SQ1O2cBql1JF4jSDUEnFB8Ix7H8g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WLcTS9m9Y4XnYOukvPEVykEl5T5OZ/F0uxcgUsLaFIgWvneuTKFb8WCgesD7WzJr/ Ddw8oKWb6EMZe2vW4WTj+l79npwdcCJ9iz8tdMJSVYTy15NacjbTq5shgskOAOSet7 D86IsqB1ZpvQtvTUqol0OzicMl6guiajSBKpCQ14uqj0Chn5OHIwza0kcHd/qJ9L05 OTzKJl71MwsI0py0W2qxb7mn1YCmXJ9Je9J3bQpq3NwZhL33toqQ7HcQkEwwKPOgeR /oKanX1yKVsak/NQpF5OzBTi4DKBZMCbMa8cLcWnZX4wTr4mwc/woZz6Yv0a8X0oHS Q1IvXorBe4jcw== Date: Thu, 28 Jan 2021 13:17:53 +0100 From: Frederic Weisbecker To: Peter Zijlstra Cc: LKML , Michal Hocko , Mel Gorman , Thomas Gleixner , "Paul E . McKenney" , Ingo Molnar , Michal Hocko , ardb@kernel.org, jpoimboe@redhat.com Subject: Re: [RFC PATCH 4/8] preempt: Introduce CONFIG_PREEMPT_DYNAMIC Message-ID: <20210128121753.GA122776@lothringen> References: <20210118141223.123667-1-frederic@kernel.org> <20210118141223.123667-5-frederic@kernel.org> <20210122165343.GE16371@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210122165343.GE16371@worktop.programming.kicks-ass.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 22, 2021 at 05:53:43PM +0100, Peter Zijlstra wrote: > On Mon, Jan 18, 2021 at 03:12:19PM +0100, Frederic Weisbecker wrote: > > +config HAVE_PREEMPT_DYNAMIC > > + bool > > + depends on HAVE_STATIC_CALL_INLINE > > I think we can relax this to HAVE_STATIC_CALL, using trampolines > shouldn't be too bad, and that would put it in reach of arm64. Why not, but then I need to make CONFIG_PREEMPT_DYNAMIC optional in order not to make the overhead mandatory for everyone. > > > + depends on GENERIC_ENTRY > > + help > > + Select this if the architecture support boot time preempt setting > > + on top of static calls. It is strongly advised to support inline > > + static call to avoid any overhead.