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: 23319 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f69.google.com (mail-qa0-f69.google.com [209.85.216.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id ECED82054C for ; Fri, 17 Jan 2014 12:28:51 +0000 (UTC) Received: by mail-qa0-f69.google.com with SMTP id w8sf5888120qac.0 for ; Fri, 17 Jan 2014 04:28:51 -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:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=qYhFzKOO6kmiWIkxSgoTtrRdl8tXKelOVjZ4f5Lrioc=; b=OQpZxRNlI+p09TTUyHkq18VploNDFHNjN9uTeEwcJA/N81/HLEapVxL0Ru3g9ppEnC ND7uLaFlcnouzuduLMMehlIQomdO3pr+8X3VZcl1cxEFCuAVhchZ8LKTaS47d/7PewWa 201zIy6JxWny3kaL6oLPMxl1Tb2wQSweqHL1OdFM4jQsgPtTlyKHzyLsMEiB3G47k8uw zXN9rrJzE4E62cjLMjM5EYGRXpy7VlT5/jYOsGdHQ7Qq0TpdgttgrxSFq8Ym0UbwheMV PP8gnv4GDoZlzlFRs7Okfn/8oO5VW/DHZMnMbz01v7RYlbU1Vl0tG3vlHp3rm4dA1R2d PDpQ== X-Gm-Message-State: ALoCoQmWzXMFCxRebrkZd5Mur4Jc8IDf8wwXQOm28YA8JEs4k4h30uMqRF4dxN+JPV5dqBaIWWw4 X-Received: by 10.58.253.33 with SMTP id zx1mr574032vec.10.1389961731187; Fri, 17 Jan 2014 04:28:51 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.104.76 with SMTP id gc12ls1120864qeb.44.gmail; Fri, 17 Jan 2014 04:28:51 -0800 (PST) X-Received: by 10.221.37.200 with SMTP id tf8mr54379vcb.54.1389961730998; Fri, 17 Jan 2014 04:28:50 -0800 (PST) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id qw5si4845639vcb.48.2014.01.17.04.28.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Jan 2014 04:28:50 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.175 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.175; Received: by mail-vc0-f175.google.com with SMTP id ij19so1537451vcb.34 for ; Fri, 17 Jan 2014 04:28:50 -0800 (PST) X-Received: by 10.220.159.4 with SMTP id h4mr796987vcx.1.1389961730844; Fri, 17 Jan 2014 04:28:50 -0800 (PST) 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.59.13.131 with SMTP id ey3csp15928ved; Fri, 17 Jan 2014 04:28:50 -0800 (PST) X-Received: by 10.68.130.169 with SMTP id of9mr1717760pbb.79.1389961729390; Fri, 17 Jan 2014 04:28:49 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si3602315pad.149.2014.01.17.04.28.48; Fri, 17 Jan 2014 04:28:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752291AbaAQM2r (ORCPT + 8 others); 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-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: 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: 209.85.220.175 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 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: , 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