Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp285376ybi; Fri, 7 Jun 2019 08:03:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+9CAp1v4w+Hwo40oOy2SBhmiul+1aSurm1u5kOTJglH9zmHe5WJQmRKYp20L1uvHKlgu4 X-Received: by 2002:aa7:83d4:: with SMTP id j20mr60711456pfn.90.1559919811932; Fri, 07 Jun 2019 08:03:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559919811; cv=none; d=google.com; s=arc-20160816; b=i/e199d0puniufjFieeKRrPoBtdMWremwtaT6zZ4th8bHbmhOLlVZTrfzBTxmZaSEz r+PiQGjBEXsz2xR7a5aka/tYRk+gczKPHiw2zmXbI6c3BDp4jdxmZrDbeR5UVH+GHALz DEgE/9z2p1K7c2h2z7dtgUl2gkLDEvPC6d2WHOgpnGdV1wSanq6pi6Gr6O3Wn4vdYjO7 sfh8gCVx91AWg117+f7vZ055RZt9il/mQhd8f7jtwgSPxXY7xhs+jZh4ta9C0qxspaRa bqrDSvLzz4hDZ+Wht16zUsa3KYFT4EkyXgYMXZpwH7SlWznYyi6vRe4Q4nGNUZL55kDG HRrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=aUtbhgoQrggx28rf3uWys/PRFqPJhwfPmqkG5o7iNO4=; b=pE+9hEnoyfFJYLdRnkrRKwoqhXZKUhCPlwf78gRFuvImpI9BhwK4L7SGxWVVGdx0dU nK4O+7cWEYp3rSCnoMBBxAVeIcH7NtDTj3LZ/dm696nFN9UoiE4aO3/q0rqnGxiNkzeI l6G9FrWuvEgW/fu53njSPESa/lwn6Rjq4s2GMFEOJpIp9J/YDOlK55eZ5IV0HZDNZ5Bn Muj4/jn36tM4yanwRqdBPv1/p1/GT0E0Pa6wlI0PwQhnc5O/AKKwo/AusIRoW5Fy95LG wzFRxXs/ftgEKDnRGdh+1rab04IH0Td8TDqc+u8D895cGIhDbeidW06t0OPs2QxBeGbI zLlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o5si469523pgh.493.2019.06.07.08.03.12; Fri, 07 Jun 2019 08:03:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729801AbfFGPBB (ORCPT + 99 others); Fri, 7 Jun 2019 11:01:01 -0400 Received: from foss.arm.com ([217.140.110.172]:41946 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729774AbfFGPA6 (ORCPT ); Fri, 7 Jun 2019 11:00:58 -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 01FD6337; Fri, 7 Jun 2019 08:00:58 -0700 (PDT) Received: from e107155-lin (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B7EB93F71A; Fri, 7 Jun 2019 08:00:54 -0700 (PDT) Date: Fri, 7 Jun 2019 16:00:52 +0100 From: Sudeep Holla To: Ulf Hansson Cc: Lorenzo Pieralisi , Mark Rutland , linux-arm-kernel@lists.infradead.org, "Rafael J . Wysocki" , Daniel Lezcano , "Raju P . L . S . S . S . N" , Amit Kucheria , Bjorn Andersson , Stephen Boyd , Niklas Cassel , Tony Lindgren , Kevin Hilman , Lina Iyer , Viresh Kumar , Vincent Guittot , Geert Uytterhoeven , Souvik Chakravarty , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Russell King , Catalin Marinas , Will Deacon , Andy Gross , David Brown , Sudeep Holla Subject: Re: [PATCH 04/18] ARM/ARM64: cpuidle: Let back-end init ops take the driver as input Message-ID: <20190607150052.GC15577@e107155-lin> References: <20190513192300.653-1-ulf.hansson@linaro.org> <20190513192300.653-5-ulf.hansson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190513192300.653-5-ulf.hansson@linaro.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 13, 2019 at 09:22:46PM +0200, Ulf Hansson wrote: > To allow arch back-end init ops to operate on the cpuidle driver for the > corresponding CPU, let's pass along a pointer to the struct cpuidle_driver* > and forward it the relevant layers of callbacks for ARM/ARM64. > I may be wrong, but I see drv is just used to get state_count mostly. It's also used in flattening part, but that should not be here either. -- Regards, Sudeep