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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0F37C433FE for ; Thu, 20 Oct 2022 04:54:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229673AbiJTEyY (ORCPT ); Thu, 20 Oct 2022 00:54:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbiJTEyW (ORCPT ); Thu, 20 Oct 2022 00:54:22 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A2EE2F0 for ; Wed, 19 Oct 2022 21:54:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3443BB825E4 for ; Thu, 20 Oct 2022 04:54:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B300C433C1; Thu, 20 Oct 2022 04:54:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666241656; bh=fGfCi8J3KIZC1kRbA3mkbdFCKwICM/HeVp4yKhcz0mg=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=MHIHt0uODg+eNGSnvpSlvz7R9E+j+E3/SpVf0cYzgnN+jh/peWzJmz31uqQ9WJj1z 7Y/eEIzZ08Yp5Or5Lld7pwVyId4+X1zPtubfEbBSfK4zNbsHuyvxlYyqQLA/yWcCnq q1cgLiQJzPLufInxDg6ARTMHGJO4Dck2236Q//GKd1m757Tl357P3y412M30V4wGsP FpKZ27PuH2l0+786k4VNwenAd8VQ8paMz6RonMj7qqDENnAHm61Y1KnNXq1YxcF8G0 zP8xacPy3CB61I2O995mQbL7pyAmZdjDwL+tGEp0TRBJvXFJwiqdPRCFMCqoOfoVmz twB2TWnSL3N1A== Date: Wed, 19 Oct 2022 21:54:15 -0700 From: Kees Cook To: Andrei Vagin , linux-kernel@vger.kernel.org CC: Andy Lutomirski , Christian Brauner , Dietmar Eggemann , Kees Cook , Ingo Molnar , Juri Lelli , Peter Oskolkov , Peter Zijlstra , Tycho Andersen , Will Drewry , Vincent Guittot Subject: Re: [PATCH 2/5] sched: add WF_CURRENT_CPU and externise ttwu User-Agent: K-9 Mail for Android In-Reply-To: <20221020011048.156415-3-avagin@gmail.com> References: <20221020011048.156415-1-avagin@gmail.com> <20221020011048.156415-3-avagin@gmail.com> Message-ID: <714DD165-E237-4599-9EE8-477B01AB4365@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On October 19, 2022 6:10:45 PM PDT, Andrei Vagin wrote= : >From: Peter Oskolkov > >Add WF_CURRENT_CPU wake flag that advices the scheduler to >move the wakee to the current CPU=2E This is useful for fast on-CPU >context switching use cases such as UMCG=2E UMCG is https://lwn=2Enet/Articles/879398/ ? >In addition, make ttwu external rather than static so that >the flag could be passed to it from outside of sched/core=2Ec=2E > >Signed-off-by: Peter Oskolkov >Signed-off-by: Andrei Vagin >--- > kernel/sched/core=2Ec | 3 +-- > kernel/sched/fair=2Ec | 4 ++++ > kernel/sched/sched=2Eh | 13 ++++++++----- > 3 files changed, 13 insertions(+), 7 deletions(-) This would need an Ack from the sched maintainers=2E=2E=2E --=20 Kees Cook