Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp471318ybz; Wed, 29 Apr 2020 03:42:47 -0700 (PDT) X-Google-Smtp-Source: APiQypKTH0fJqVVC2a6R6c4DBlTUHLpcsdDiTMfMIYqvu0I4q0ElkxldAQEe40pstnj/Ng/J3yfW X-Received: by 2002:a17:906:c44b:: with SMTP id ck11mr2079014ejb.110.1588156966916; Wed, 29 Apr 2020 03:42:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588156966; cv=none; d=google.com; s=arc-20160816; b=x9xOdjTJbG0vn5Kh8YMgENPXD2/K8lQwTQ46dryjEjc4Dwtk5GL8L73kfZwhcsbpJr UaTe0emhaxn+UAOyGIfGwC/WBqymPgSAHnGy9MzArQ9Sbsx8STDdLw7uYvJAlQFgnUbP 2b6/fCA595LSmC0E62Vd/oVKysQi1Gfu6CYa+geKLG6kOdBdShxNkXOxhYDI5aJEwM6G cxTxBMMM/ScZw1/eRwWBXKLBGgcr9/IPj5n3RBBWOO3BU39+conWdfP2ufvTwd6ROiRG 9UTDXKzVndjT2FRex5uIAPoM0vdLlNegYmnJVYxMbYNAlgfJn6IOOpJufAIazymsL09K hSFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=WwYHZCwTFZHdWBfKehSRrwQ6RP1rkz42njkLhrO7AEs=; b=AHzpKcyZ5jmyXUmGL7ejHIx2rHdab6CiQrIaoTiq6pTbJt+nmTpgwTwBshjZqQDWCX Eax/jaoI93u9D7mCzXwUSC2BIC9eR7LGEP8lCRo/mKk377z2/eT5lqEYnqauIRXtXQuz lmszwxWTGIvVOIynPKzH/mJF1qVEBYu5lRpApMiLrIGk6ClrkHRJZqMdwl4yyUQLZPzL PQmrK8YPDkvJRrhPRxit2FdjRDUBNYheFVbx/0PPKlUKvByWsYG2kD1Gnn7SYBefukjh 17IO2326rOTvMT0hZ5kk/2Df+YK1Qg3pXlPC3JQr09Rg3mR5dj+JI0jiwiuvbZhXbkYg 4o6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o25si3690705ejh.73.2020.04.29.03.42.23; Wed, 29 Apr 2020 03:42:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726686AbgD2Kkc (ORCPT + 99 others); Wed, 29 Apr 2020 06:40:32 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:34927 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726355AbgD2Kkb (ORCPT ); Wed, 29 Apr 2020 06:40:31 -0400 Received: by mail-oi1-f196.google.com with SMTP id o7so1377142oif.2; Wed, 29 Apr 2020 03:40:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WwYHZCwTFZHdWBfKehSRrwQ6RP1rkz42njkLhrO7AEs=; b=MjyEHs3RSThMKKqH7zzt/CpUdrps5kzRbeNvtLs0MvKVDycNcpfhanewgpV53gmsg+ F0ZscscjawNBj4flUeZk6vY7crgY5ih7V8iQLGKzn5/v7poEI0ep0YKpKQxgKtgCiA8C v6M6pMo5+oFw5FnRJBSzcCixx0CTJGFvP9ELnjUKXW7W/L8sVIqUYM9IsAtfIOR36BLo 8XrBeKQ1VpUwQ5uTXSAtCzaFiazxEr+okxVvjuFHs22QV1JVbKWmenSWeFAf3gIBZWyX MLd09jA/aptiIlQUyeF57k43Uw1VEt6zMqZDb5KgqKtRRitpwYMFFr16RvBl4Lph/0XU cMzw== X-Gm-Message-State: AGi0Puaj91SYy1njCo52BKhxVT4t5Q2kTHv0N6Uh+rxA/NCdfPabqRuK Nw9Rw/+cn9XpiKv3eiXa5SBQnDcM8vzMQ+j43q8= X-Received: by 2002:aca:c441:: with SMTP id u62mr1231257oif.110.1588156829763; Wed, 29 Apr 2020 03:40:29 -0700 (PDT) MIME-Version: 1.0 References: <20200409112742.3581-1-qais.yousef@arm.com> <26038947.HFycnDbHsR@kreacher> <20200427102910.b6iysyumiz5pj4sv@e107158-lin> In-Reply-To: <20200427102910.b6iysyumiz5pj4sv@e107158-lin> From: "Rafael J. Wysocki" Date: Wed, 29 Apr 2020 12:40:18 +0200 Message-ID: Subject: Re: [PATCH 1/3] Revert "cpu/hotplug: Ignore pm_wakeup_pending() for disable_nonboot_cpus()" To: Qais Yousef Cc: "Rafael J. Wysocki" , Thomas Gleixner , Len Brown , Pavel Machek , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "the arch/x86 maintainers" , Todd E Brandt , Linux PM , Linux Kernel Mailing List 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 On Mon, Apr 27, 2020 at 12:29 PM Qais Yousef wrote: > > On 04/26/20 17:24, Rafael J. Wysocki wrote: > > I would do this the other way around: > > > > 1. Make x86 call freeze_secondary_cpus() directly, rename > > enable_nonboot_cpus() and drop disable_nonboot_cpus(). > > All of this in a single patch? Well, why not? Calling freeze_secondary_cpus() directly causes disable_nonboot_cpus() to be unused (and so it can be dropped in the same patch) and it also introduces a name mismatch between freeze_ and enable_, which IMO needs to be addressed right away (also in the same patch). > > 2. Get rid of __freeze_secondary_cpus(). > > I guess you're implying to drop the revert too and manually unroll it instead. IMO the revert is just an extra step with no real value, so why do it? > Could do. Thanks!