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: 3503751 Return-Path: X-Original-To: patchwork-linux-arm@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 CE6049F169 for ; Fri, 17 Jan 2014 12:29:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EBD822015D for ; Fri, 17 Jan 2014 12:29:18 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0CB1820108 for ; Fri, 17 Jan 2014 12:29:18 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W48Xx-0008CH-R8; Fri, 17 Jan 2014 12:29:13 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W48Xv-00079o-43; Fri, 17 Jan 2014 12:29:11 +0000 Received: from mail-pd0-f171.google.com ([209.85.192.171]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W48Xs-00078n-58 for linux-arm-kernel@lists.infradead.org; Fri, 17 Jan 2014 12:29:08 +0000 Received: by mail-pd0-f171.google.com with SMTP id g10so3217997pdj.2 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=DlU/JawPgK00fLc6MrBGQIRenTlyNdNlJcfr6eiR+Yx5GzcxEmEBKJ3lcogNquOgbI T4174afdjye9mOi0khS8Kvp4vfEYf01iq2GeZ+XsR3FszRTiFNTx/EDRT/jSyMmofZ/k 4KP5VEQr5rxcXxhGYKQoJt5nGSNwwhb+wjSUJsSZ5aGF71Qmqtc57L1Ly7AekabZsPPO DhnDgkK/xqk2B/qHUt9RsrGurkFzJD++b7d9VU17jCzH4jSzOib4lIHf8ogNttSCxl1l rg/eiA3pUACARY6zHaATZovIRGUG++NXmVVABobIh3GU6H3kh4pNtT28qmULfxy2fXgZ qQww== X-Gm-Message-State: ALoCoQkZEcmBjiPUkKuXsjqwQ0esRzt8xn1N0BsYUx0sW+ikxSQW39VTOqedJHZJJFkSBrXbOgCo 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140117_072908_280295_E5B82185 X-CRM114-Status: GOOD ( 12.74 ) X-Spam-Score: -1.1 (-) Cc: Mark Rutland , Matthew Garrett , linaro-kernel@lists.linaro.org, Graeme Gregory , Arnd Bergmann , Rob Herring , Linus Walleij , Olof Johansson , linux-kernel@vger.kernel.org, linaro-acpi@lists.linaro.org, linux-acpi@vger.kernel.org, Hanjun Guo , patches@linaro.org, Grant Likely , Bjorn Helgaas , linux-arm-kernel@lists.infradead.org, Charles.Garcia-Tobin@arm.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB,RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham 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