From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965824AbbJ0Rlh (ORCPT ); Tue, 27 Oct 2015 13:41:37 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:33329 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965804AbbJ0Rld (ORCPT ); Tue, 27 Oct 2015 13:41:33 -0400 From: Marc Titinger X-Google-Original-From: Marc Titinger To: lina.iyer@linaro.org Cc: rjw@rjwysocki.net, khilman@kernel.org, ahaslam@baylibre.com, bcousson@baylibre.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Marc Titinger , Marc Titinger Subject: [RFC v3 6/7] arm64: PM /Domains: Initialize CPU-domains from DT. Date: Tue, 27 Oct 2015 18:40:55 +0100 Message-Id: <1445967656-28292-7-git-send-email-mtitinger+renesas@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1445967656-28292-1-git-send-email-mtitinger+renesas@baylibre.com> References: <1445967656-28292-1-git-send-email-mtitinger+renesas@baylibre.com> In-Reply-To: <20151019205825.GA82426@linaro.org> References: <20151019205825.GA82426@linaro.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marc Titinger Signed-off-by: Marc Titinger --- arch/arm64/kernel/Makefile | 1 + arch/arm64/kernel/cpu_domain.c | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 arch/arm64/kernel/cpu_domain.c diff --git a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile index 1b6bda2..5f8b59f 100644 --- a/arch/arm64/kernel/Makefile +++ b/arch/arm64/kernel/Makefile @@ -46,6 +46,7 @@ arm64-obj-$(CONFIG_EFI) += efi.o $(stub-obj) arm64-obj-$(CONFIG_PCI) += pci.o arm64-obj-$(CONFIG_ARMV8_DEPRECATED) += armv8_deprecated.o arm64-obj-$(CONFIG_ACPI) += acpi.o +arm64-obj-$(CONFIG_PM_GENERIC_DOMAINS) += cpu_domain.o obj-y += $(arm64-obj-y) vdso/ obj-m += $(arm64-obj-m) diff --git a/arch/arm64/kernel/cpu_domain.c b/arch/arm64/kernel/cpu_domain.c new file mode 100644 index 0000000..06a3949 --- /dev/null +++ b/arch/arm64/kernel/cpu_domain.c @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2015, Linaro Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include + +static int __init arm64_cpu_pd_init(void) +{ + return of_cpu_pd_init("arm,cpu-pd"); +} +device_initcall(arm64_cpu_pd_init); -- 1.9.1