From patchwork Fri Jan 17 12:24:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 3503731 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0BA4B9F169 for ; Fri, 17 Jan 2014 12:28:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D1AB12015D for ; Fri, 17 Jan 2014 12:28:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D47A720158 for ; Fri, 17 Jan 2014 12:28:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752291AbaAQM2r (ORCPT ); Fri, 17 Jan 2014 07:28:47 -0500 Received: from mail-pa0-f48.google.com ([209.85.220.48]:42047 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751484AbaAQM2q (ORCPT ); Fri, 17 Jan 2014 07:28:46 -0500 Received: by mail-pa0-f48.google.com with SMTP id kx10so2495194pab.7 for ; Fri, 17 Jan 2014 04:28:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WLXAf3dMm3Jv+P5qN7M+Ut7F3N+KfOEqLyUwofYXwHc=; b=Y3LUt+Z9CCzlLsZKjx1gmX6AAcdkKgHm05M07h5GGA94ZIJPNO7MfYDNKpta1PR+Je inw2zr1DBftECrEZKDNqFTJ7WrsuKZlINVKStIlAmM1avPvc/JC2Zdkd9VLir/8dvqcu BHqNk7htW7HlZw49S4+msbgb+2ZCBQd9PWlU2G0HQuPRA4D4viYu7FkRBBebGnn9QgxL eJpYYU00nG8h/C5REadJudGjfVIumIw+XzSsj6xtWOOLSra8R2ciIU0ZaNoPAO/iphmX U58/L8M6anOPpl2vV+qup1JH5eZsaJzdo6iYyrrikAZz/WdwVrJRhToig0XqZC1Nx/gD Rv7A== X-Gm-Message-State: ALoCoQnii3ffHPN2QjkjinMpO+6LD4ys+fA+c+MeN6+poXmqc6MGsHTM/6Dj1zc5ZyJ8wLCMlOqZ X-Received: by 10.68.237.228 with SMTP id vf4mr1700168pbc.131.1389961726146; Fri, 17 Jan 2014 04:28:46 -0800 (PST) Received: from localhost ([218.17.215.175]) by mx.google.com with ESMTPSA id g6sm30227480pat.2.2014.01.17.04.28.09 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 17 Jan 2014 04:28:45 -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 , Graeme Gregory Subject: [PATCH 02/20] ARM64 : Add dummy asm/cpu.h Date: Fri, 17 Jan 2014 20:24:56 +0800 Message-Id: <1389961514-13562-3-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> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP ACPI requires a cpu.h, add a dummy one copied from arm. This will need updated or replaced as ACPI based cpu hotplug or cpu topology for armv8 is worked out. Signed-off-by: Graeme Gregory Signed-off-by: Hanjun Guo --- arch/arm64/include/asm/cpu.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 arch/arm64/include/asm/cpu.h diff --git a/arch/arm64/include/asm/cpu.h b/arch/arm64/include/asm/cpu.h new file mode 100644 index 0000000..8625eb1 --- /dev/null +++ b/arch/arm64/include/asm/cpu.h @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2004-2005 ARM 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 as + * published by the Free Software Foundation. + */ +#ifndef __ASM_ARM_CPU_H +#define __ASM_ARM_CPU_H + +#include +#include +#include + +struct cpuinfo_arm { + struct cpu cpu; + u64 cpuid; +#ifdef CONFIG_SMP + unsigned int loops_per_jiffy; +#endif +}; + +DECLARE_PER_CPU(struct cpuinfo_arm, cpu_data); + +#endif