Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3225834pxb; Fri, 5 Nov 2021 11:53:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZ2E1hKOFK+O4gwPIU2BqY5eRw6NU78dykD0MQRuyOwlMpf7LjUeoMEnVEk9Jde5HOiZ3N X-Received: by 2002:a05:6602:1487:: with SMTP id a7mr775453iow.114.1636138423437; Fri, 05 Nov 2021 11:53:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636138423; cv=none; d=google.com; s=arc-20160816; b=B7WX1UYl517dErt1K22xpOestGIRQR7dGmnReoEz2N2bnJtJX27Qdk2kxZm1f1Dri/ IG7YBPYwAlcFzOGD0qYmYauPVTr//0Bq85EcAR1I+TfHGrr9p9Uld8q5TUbMjBeEYfeD XgA8ow01+LVbY9PWOXes/DiPqfatYCpNWF5tHxkNEfe4+rVCRVuU4/hiXltIdbCKTgLk lxuZ6rIGDBfxKX7F2VMkwqMKnshWu8SexJXA7OaJMYTRy8YiURECez2nath2uSksk+WI ETuMoJ7qAHDitrVYwvrqjopJp7gke/3165UZehBv+hvP22R5E91XG3J8az7TVy7QlzdB +KEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=0bxJJIGQHmN64IYnvFKRHZvu/DDPUPT9RwPyQ0CbGsg=; b=frYmCEoAQAVd2K0zLZuq6/jz/+cwlw4EojkFLWebscy4AVJLnXcjCgPrD9SlWIFk0Z FoD3TXixACX+0Z0gF715J5NZfO8CLKKKHNlizX8NC7uGjKsl7hsP4571Dj98ob4+y3E+ CB5PiHnDrBUj1vliyp/hzRXNQN0HYPrHnpshaYHPCkRf5MCgsT0TQxj2zBDnFmHTINXp QAO8JMDQnylaBytcz2jMnHhomJ2xT0yJ6OW277MAwPtmGJmjGV518xNZ5f2EZVK3Kr/R QuKA3UWMJh0yy2d+IpYNrTFd1K4N/n8rDMARMe+wrbwvoSCzxM2fVwJGBSSJVofbJ4Bt +sWg== 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q13si20383510ilo.10.2021.11.05.11.53.29; Fri, 05 Nov 2021 11:53:43 -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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234159AbhKERDn (ORCPT + 99 others); Fri, 5 Nov 2021 13:03:43 -0400 Received: from foss.arm.com ([217.140.110.172]:33676 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231475AbhKERDm (ORCPT ); Fri, 5 Nov 2021 13:03:42 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DD9791042; Fri, 5 Nov 2021 10:01:02 -0700 (PDT) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.196.57]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 506CA3F7F5; Fri, 5 Nov 2021 10:01:01 -0700 (PDT) From: Valentin Schneider To: Yafang Shao , mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com Cc: linux-kernel@vger.kernel.org, Yafang Shao Subject: Re: [RFC PATCH 1/4] stop_machine: Move cpu_stop_done into stop_machine.h In-Reply-To: <20211104145713.4419-2-laoar.shao@gmail.com> References: <20211104145713.4419-1-laoar.shao@gmail.com> <20211104145713.4419-2-laoar.shao@gmail.com> Date: Fri, 05 Nov 2021 17:00:58 +0000 Message-ID: <87bl2ytu45.mognet@arm.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/11/21 14:57, Yafang Shao wrote: > Move struct cpu_stop_done into the stop_machine.h, then it can be resued > by the functions outside of stop_maichine.c. > The nr_todo & ret faff is only required for multi_stop scenarios, which isn't your use-case. AFAICT you don't need to export this, you just need a struct completion somewhere (and maybe a ret, but I'm not even sure about that).