Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp4134268pxm; Tue, 1 Mar 2022 12:00:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxCpNZlXBuxmm5oL18vkRNV+/X0LUGTghA+Dy8dkzlTWUhZxm9R4CGW+BEEBlIHHjyLDJ7 X-Received: by 2002:a05:6a00:1891:b0:4f4:2286:2729 with SMTP id x17-20020a056a00189100b004f422862729mr8211885pfh.19.1646164823502; Tue, 01 Mar 2022 12:00:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646164823; cv=none; d=google.com; s=arc-20160816; b=kUc2h7ruXTe6EgS3bWU7v1NWf+SdcZF9dPwFOVZEa/Ud3U+fgM/VsvaD9g4xfJSHuO IoXLKWJ6SOpGTcY2yjUGasXbCH3pd4IWLfTZQnC6KAoyJHbJm6g5y8wVbEbF9JxlMEKN OWp1YE3xGn+gvQSKyVXHLJ4q6TIaRSsd18zcfwNF3OTxGzAwbgC8ZlpKOuTk+fRiZ9RE o0mYMwhRQtmkamAjPm811oxhOeM18v3qZvBL5pd6/eMTt/WCOPNwI8WHXvM9V4vuMkXd 2DdxE+2U+1cdBU3fxIoNsD64zcW1R9eQwy1U+pc9lzFqZVvw27N0ePhVSaUV75qbWi8H T1rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=79qgkMv7Kg2QVk5mvxLZjjniRJCyI9kiBcfGLVd0aO0=; b=n5Yg8Ub+rMFdKJXYyq8k9ApLiOqj41/dmku9ZOAJM+OszPguQxZFpTsuC84gSic346 74JKGOTlZwTyUYIm8gsV4K/h0wwgw9Sfefv0vr+ocCFHwaQpm1vYUcjhNuyFiYaX2iz5 obhRxbSv2xxk5pf6w2629p8xfVp4yQSonXg0QvfqbZfcmFM+Ci1GrI/+ELoxpGGfGCmY R6ri4xcHACKrinVTad877SwFWa0Dqq+47S/jTQPUcaFoUlg0ofV+b61mEWgQo9HrNm4i mU4soJoBeP87AnTBW+HzLDqxcF9oJTyoxI0zND978lHINXbGXzo5pNanS+xK2WN5s0lA lSjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="S3uLf/xb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16-20020a63cc50000000b003755fb164a5si13064644pgi.611.2022.03.01.12.00.06; Tue, 01 Mar 2022 12:00:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="S3uLf/xb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237156AbiCAS6p (ORCPT + 99 others); Tue, 1 Mar 2022 13:58:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237129AbiCAS6j (ORCPT ); Tue, 1 Mar 2022 13:58:39 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C5FF613E1D for ; Tue, 1 Mar 2022 10:57:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646161076; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=79qgkMv7Kg2QVk5mvxLZjjniRJCyI9kiBcfGLVd0aO0=; b=S3uLf/xbbVuDzFOrUMPgFIzZQNGQeenuanFxgKwHD/csaxUybA2jraJDGPDO0AJcVYUr/G 9w8zIuknhP4ZgM2rlzznHzYK34cW8lu6Z30Fr6Y7UfxQfyhexs4brlTtDwxyv/SB6S5M7o oKgtbcJHATBdDhGUA52oWegGc8gVF9Y= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-622-GpPt4QaeMnCGLGoGpPSQLg-1; Tue, 01 Mar 2022 13:57:55 -0500 X-MC-Unique: GpPt4QaeMnCGLGoGpPSQLg-1 Received: by mail-ej1-f71.google.com with SMTP id hc39-20020a17090716a700b006ce88cf89dfso7280665ejc.10 for ; Tue, 01 Mar 2022 10:57:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=79qgkMv7Kg2QVk5mvxLZjjniRJCyI9kiBcfGLVd0aO0=; b=V3t8D3uzAQtMkPHW0laWRF3p244PqySTrf9CTkTujlD0Nqy50pkjsl2ie2ibbL9z6R Niu1R76LMZNHE+RpBYasJ+vHyR16nLfIFdF1AJYC1EEkkZ0TAC0Vd1//qFYSnFYv6A9g HDZjLh8jnHElf7XaOvcX3WFGutJRTw3TOx2TAUpvrUxNy+rySn7CDCFZP4T/UpbMZnt0 MHzzSUSvSH8vJwT6MEpD99zqsjkjsYjA8guMyir1d8/tkRe5Aba5Kdr+eMF7tgcbnpgr NdrJEwCcCD81h5oMY/R+lkj1ck/P5Xr57fzdf/A15AM624+Gwc8ryZoqRnndrelUMLLb M8kw== X-Gm-Message-State: AOAM533o38iynmEMsH4CGIiHuFlSD2e7q3C56BtgEb2PV966/yVi4uFJ cURbzsapKGS0XoLEFuNJdEq2sToF70kP9Lhas1BFV85hasteRRFAwYLELQtrPyUetkMnDf/IS55 XrMb+ng9WJmLezTfNaGL7VlIF X-Received: by 2002:a17:906:9454:b0:6b5:aa6:2822 with SMTP id z20-20020a170906945400b006b50aa62822mr19421330ejx.619.1646161074689; Tue, 01 Mar 2022 10:57:54 -0800 (PST) X-Received: by 2002:a17:906:9454:b0:6b5:aa6:2822 with SMTP id z20-20020a170906945400b006b50aa62822mr19421324ejx.619.1646161074503; Tue, 01 Mar 2022 10:57:54 -0800 (PST) Received: from [10.0.0.45] (host-95-232-30-176.retail.telecomitalia.it. [95.232.30.176]) by smtp.gmail.com with ESMTPSA id d10-20020aa7ce0a000000b00412eb8dcbd2sm7571746edv.9.2022.03.01.10.57.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Mar 2022 10:57:54 -0800 (PST) Message-ID: <60c62d7a-940a-e424-15e0-af47cd36eacf@redhat.com> Date: Tue, 1 Mar 2022 19:57:52 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v2 1/2] sched/isolation: use raw_smp_processor_id() in housekeeping_any_cpu() Content-Language: en-US To: Nicolas Saenz Julienne , mingo@redhat.com, peterz@infradead.org, frederic@kernel.org, rostedt@goodmis.org Cc: tglx@linutronix.de, mtosatti@redhat.com, linux-kernel@vger.kernel.org References: <20220301113053.141514-1-nsaenzju@redhat.com> From: Daniel Bristot de Oliveira In-Reply-To: <20220301113053.141514-1-nsaenzju@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/1/22 12:30, Nicolas Saenz Julienne wrote: > housekeeping_any_cpu() will return a housekeeping CPU. That's it. It'll > try to optimize for NUMA locality and to use the local CPU, but it's not > a requisite. > > So let's use raw_smp_processor_id() instead of its vanilla counterpart > in order to allow users to query for housekeeping CPUs without having to > disable preemption. > > Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Daniel Bristot de Oliveira -- Daniel