From patchwork Fri Apr 25 13:20:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 29072 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f197.google.com (mail-ie0-f197.google.com [209.85.223.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 51CFF202E6 for ; Fri, 25 Apr 2014 13:21:54 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id rd18sf21859807iec.0 for ; Fri, 25 Apr 2014 06:21:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=5ZEiqbHTDXV5AcuBpwfwYCXNs2PYKBspoHLNNFJZ1f8=; b=O4V4bxx7TTsr9ZN/CkBNEKG4SOL6AXITCnp4JqsJjrInVhQBfLP+50HI3aazW7W3F0 rvIbwukwbYE6sUnPdqZyKEvMdimbZTFKS2yuDYfWN6wflP2HYq5b4R11qkpPaaB0OSef T573QTKh/txuGrc0uy/bjaWmviw1isd8+e2xMl+yvAH+JPjuEvsfuMkt0d7GAdSU/OHF djfXyHyivl0bsGeceLwkOPbczLalv4sBi0XO4GpfoA1gnIOr86ts4492nki7WCriSDqx Tyz6hM13DjDA2BD/Qq1fgT+Is+rWABUtILnkOjkFN9P7v5fem/t8mtlJ10TddV5bXaYr WcCA== X-Gm-Message-State: ALoCoQkZ35dfSRUZg0lhq/zHZs99vo+2zAggE8lK9Ld8W9txiB7LbQEEYr6KlJf1Q6CsN4AiRY2b X-Received: by 10.182.226.163 with SMTP id rt3mr4555150obc.13.1398432113767; Fri, 25 Apr 2014 06:21:53 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.83.137 with SMTP id j9ls1561777qgd.70.gmail; Fri, 25 Apr 2014 06:21:53 -0700 (PDT) X-Received: by 10.220.92.135 with SMTP id r7mr6824374vcm.11.1398432113602; Fri, 25 Apr 2014 06:21:53 -0700 (PDT) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id fv9si1698700vcb.20.2014.04.25.06.21.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Apr 2014 06:21:53 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.128.173; Received: by mail-ve0-f173.google.com with SMTP id oy12so4640976veb.18 for ; Fri, 25 Apr 2014 06:21:53 -0700 (PDT) X-Received: by 10.220.98.143 with SMTP id q15mr70779vcn.38.1398432113530; Fri, 25 Apr 2014 06:21:53 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp97279vcb; Fri, 25 Apr 2014 06:21:53 -0700 (PDT) X-Received: by 10.66.141.109 with SMTP id rn13mr5652094pab.117.1398432112453; Fri, 25 Apr 2014 06:21:52 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ho7si4822886pad.438.2014.04.25.06.21.51; Fri, 25 Apr 2014 06:21:51 -0700 (PDT) Received-SPF: none (google.com: linux-acpi-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752027AbaDYNVq (ORCPT + 8 others); Fri, 25 Apr 2014 09:21:46 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:54280 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751825AbaDYNVj (ORCPT ); Fri, 25 Apr 2014 09:21:39 -0400 Received: by mail-pa0-f49.google.com with SMTP id lj1so3153105pab.22 for ; Fri, 25 Apr 2014 06:21:38 -0700 (PDT) X-Received: by 10.68.171.193 with SMTP id aw1mr7665321pbc.117.1398432098426; Fri, 25 Apr 2014 06:21:38 -0700 (PDT) Received: from localhost ([218.17.215.175]) by mx.google.com with ESMTPSA id pe3sm15986073pbc.23.2014.04.25.06.21.23 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 25 Apr 2014 06:21:37 -0700 (PDT) From: Hanjun Guo To: linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org Cc: "Rafael J. Wysocki" , Catalin Marinas , Arnd Bergmann , Mark Brown , Grant Likely , Sudeep Holla , Olof Johansson , Mark Rutland , Rob Herring , Will Deacon , Charles.Garcia-Tobin@arm.com, linaro-acpi@lists.linaro.org, Hanjun Guo , Al Stone , Graeme Gregory Subject: [PATCH v3 part1 02/11] ARM64 / ACPI: Introduce the skeleton of _PDC related for ARM64 Date: Fri, 25 Apr 2014 21:20:08 +0800 Message-Id: <1398432017-8506-3-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398432017-8506-1-git-send-email-hanjun.guo@linaro.org> References: <1398432017-8506-1-git-send-email-hanjun.guo@linaro.org> Sender: linux-acpi-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: hanjun.guo@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The _PDC (Processor Driver Capabilities) object provides OSPM a mechanism to convey to the platform the capabilities supported by OSPM for processor power management. OSPM evaluates _PDC prior to evaluating any other processor power management objects returning configuration information. This patch introduces the skeleton of _PDC related file to make ACPI core can be compiled on ARM64, and should be revisited when implementing CPU power control. Signed-off-by: Al Stone Signed-off-by: Graeme Gregory Signed-off-by: Hanjun Guo Acked-by: Grant Likely --- arch/arm64/include/asm/acpi.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 arch/arm64/include/asm/acpi.h diff --git a/arch/arm64/include/asm/acpi.h b/arch/arm64/include/asm/acpi.h new file mode 100644 index 0000000..e3e990e --- /dev/null +++ b/arch/arm64/include/asm/acpi.h @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2013~2014, Al Stone + * + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * 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. + * + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + */ + +#ifndef _ASM_ACPI_H +#define _ASM_ACPI_H + +static inline bool arch_has_acpi_pdc(void) +{ + /* + * Always false for now, should be revisited when + * implementing CPU power management + */ + return false; +} + +static inline void arch_acpi_set_pdc_bits(u32 *buf) +{ + /* Should be revisited when implementing CPU power management */ + return; +} + +#endif /*_ASM_ACPI_H*/