From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catalin Marinas Subject: Re: [PATCH v7 4/8] arm64: kernel: introduce cpu_init_idle CPU operation Date: Mon, 18 Aug 2014 15:21:06 +0100 Message-ID: <20140818142106.GE20043@localhost> References: <1407945127-27554-1-git-send-email-lorenzo.pieralisi@arm.com> <1407945127-27554-5-git-send-email-lorenzo.pieralisi@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1407945127-27554-5-git-send-email-lorenzo.pieralisi@arm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Lorenzo Pieralisi Cc: Mark Rutland , Tomasz Figa , Lina Iyer , Chander Kashyap , Vincent Guittot , Nicolas Pitre , Daniel Lezcano , "linux-arm-kernel@lists.infradead.org" , "grant.likely@linaro.org" , Charles Garcia-Tobin , "devicetree@vger.kernel.org" , Kevin Hilman , "linux-pm@vger.kernel.org" , Sebastian Capella , Mark Brown , Antti Miettinen , Paul Walmsley , Geoff Levand , Peter De Schrijver , Stephen Boyd , Amit Kucheria List-Id: devicetree@vger.kernel.org On Wed, Aug 13, 2014 at 04:52:03PM +0100, Lorenzo Pieralisi wrote: > The CPUidle subsystem on ARM64 machines requires the idle states > implementation back-end to initialize idle states parameter upon > boot. This patch adds a hook in the CPU operations structure that > should be initialized by the CPU operations back-end in order to > provide a function that initializes cpu idle states. > > This patch also adds the infrastructure to arm64 kernel required > to export the CPU operations based initialization interface, so > that drivers (ie CPUidle) can use it when they are initialized > at probe time. > > Signed-off-by: Lorenzo Pieralisi > --- > arch/arm64/include/asm/cpu_ops.h | 3 +++ > arch/arm64/include/asm/cpuidle.h | 13 +++++++++++++ > arch/arm64/kernel/Makefile | 1 + > arch/arm64/kernel/cpuidle.c | 29 +++++++++++++++++++++++++++++ > 4 files changed, 46 insertions(+) > create mode 100644 arch/arm64/include/asm/cpuidle.h > create mode 100644 arch/arm64/kernel/cpuidle.c Reviewed-by: Catalin Marinas