From patchwork Fri Jan 17 12:24:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 23320 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8846E2054C for ; Fri, 17 Jan 2014 12:29:41 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id v1sf2448012yhn.11 for ; Fri, 17 Jan 2014 04:29:40 -0800 (PST) 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=QkWEtpBVWbeu2YkE7f4d3O3B+N6NBPyK8onv17BT8qk=; b=HRi76WiQgpyGPqHfLLigrVMjzfh0+5EgRa6/GI9X9efqP1s1hQYeo2FgAZSQua7wsg dpRdgFCGTLncwGGHbQTk2EVhKviMeqkgORG+ZJ9E9C7UgEoo299VAW5DwKvWlwdtiFXz ocXJIlduWpLl2RFxKME49wCnC0MgJkR8O2r9BWTsbQz2o+8IRgURBh+c+6rvLbZjqtT0 bfJ4Fb3dnvW17C+Xa+mVEqHWJoJX/+C5VkHqD9iQV6vy3F2gVfT5vzdjYuPk7XFFGPvr 1ctQ9Q2s5aHMp1p+7FZgN5kTdv8jqcuR6I3HPirrl4pVhbFL7DGlDuD3h+QttZdKL+1L qpjQ== X-Gm-Message-State: ALoCoQkLdHuh1KHoRLJacPdxRlqHIx4TFyXSfNXG3uTggLPtvuqSNO6Rrugu1hN2Iij4Uaw9QAEI X-Received: by 10.236.121.4 with SMTP id q4mr540910yhh.34.1389961780785; Fri, 17 Jan 2014 04:29:40 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.28.6 with SMTP id 6ls460725qgy.16.gmail; Fri, 17 Jan 2014 04:29:40 -0800 (PST) X-Received: by 10.220.188.70 with SMTP id cz6mr53033vcb.59.1389961780650; Fri, 17 Jan 2014 04:29:40 -0800 (PST) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id gq3si4840385vdc.2.2014.01.17.04.29.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Jan 2014 04:29:40 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id im17so1495825vcb.5 for ; Fri, 17 Jan 2014 04:29:40 -0800 (PST) X-Received: by 10.58.146.5 with SMTP id sy5mr83380veb.43.1389961780562; Fri, 17 Jan 2014 04:29:40 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.59.13.131 with SMTP id ey3csp15980ved; Fri, 17 Jan 2014 04:29:39 -0800 (PST) X-Received: by 10.66.138.40 with SMTP id qn8mr1824509pab.154.1389961779403; Fri, 17 Jan 2014 04:29:39 -0800 (PST) Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by mx.google.com with ESMTPS id zk9si6714020pac.144.2014.01.17.04.29.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Jan 2014 04:29:39 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.45 is neither permitted nor denied by best guess record for domain of hanjun.guo@linaro.org) client-ip=209.85.220.45; Received: by mail-pa0-f45.google.com with SMTP id lf10so1796323pab.18 for ; Fri, 17 Jan 2014 04:29:39 -0800 (PST) X-Received: by 10.68.138.165 with SMTP id qr5mr1717323pbb.123.1389961779023; Fri, 17 Jan 2014 04:29:39 -0800 (PST) Received: from localhost ([218.17.215.175]) by mx.google.com with ESMTPSA id yi8sm30199138pab.16.2014.01.17.04.29.11 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 17 Jan 2014 04:29:38 -0800 (PST) From: Hanjun Guo To: "Rafael J. Wysocki" , Catalin Marinas , Will Deacon , Russell King - ARM Linux Cc: linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Grant Likely , Matthew Garrett , Olof Johansson , Linus Walleij , Bjorn Helgaas , Rob Herring , Mark Rutland , Arnd Bergmann , patches@linaro.org, linux-kernel@vger.kernel.org, linaro-kernel@lists.linaro.org, linaro-acpi@lists.linaro.org, Charles.Garcia-Tobin@arm.com, Hanjun Guo , Al Stone , Graeme Gregory Subject: [PATCH 03/20] ARM64 / ACPI: Introduce the skeleton of _PDC related for ARM64 Date: Fri, 17 Jan 2014 20:24:57 +0800 Message-Id: <1389961514-13562-4-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1389961514-13562-1-git-send-email-hanjun.guo@linaro.org> References: <1389961514-13562-1-git-send-email-hanjun.guo@linaro.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: 209.85.220.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: 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. Signed-off-by: Al Stone Signed-off-by: Graeme Gregory Signed-off-by: Hanjun Guo --- arch/arm64/include/asm/acpi.h | 32 ++++++++++++++++++++++++++++++++ arch/arm64/include/asm/processor.h | 2 ++ arch/arm64/kernel/process.c | 3 +++ 3 files 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..cf19dc6 --- /dev/null +++ b/arch/arm64/include/asm/acpi.h @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2013, 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_ARM64_ACPI_H +#define _ASM_ARM64_ACPI_H + +static inline bool arch_has_acpi_pdc(void) +{ + return false; /* always false for now */ +} + +static inline void arch_acpi_set_pdc_bits(u32 *buf) +{ + return; +} + +#endif /*_ASM_ARM64_ACPI_H*/ diff --git a/arch/arm64/include/asm/processor.h b/arch/arm64/include/asm/processor.h index 45b20cd..50ce951 100644 --- a/arch/arm64/include/asm/processor.h +++ b/arch/arm64/include/asm/processor.h @@ -162,6 +162,8 @@ static inline void spin_lock_prefetch(const void *x) #define HAVE_ARCH_PICK_MMAP_LAYOUT +extern unsigned long boot_option_idle_override; + #endif #endif /* __ASM_PROCESSOR_H */ diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c index de17c89..13d3d7f 100644 --- a/arch/arm64/kernel/process.c +++ b/arch/arm64/kernel/process.c @@ -89,6 +89,9 @@ void arch_cpu_idle_prepare(void) local_fiq_enable(); } +unsigned long boot_option_idle_override = IDLE_NO_OVERRIDE; +EXPORT_SYMBOL(boot_option_idle_override); + /* * This is our default idle handler. */