From patchwork Tue Dec 3 16:36:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 21976 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 88A63202AE for ; Tue, 3 Dec 2013 16:37:53 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id z6sf33878550yhz.7 for ; Tue, 03 Dec 2013 08:37:53 -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=2OS8Z2LTj/oQDQ7AJXem7dAwqexBaT3h7K5hI6coKHc=; b=RlQE+ygYfRDWIO4wosQLa3cPmqtZqIYWCMcvPP1OJ7BqRD55uWf8Sp0mSMgl3ll6jA MGw2tA7SECguJLtkJ/8yyFHRmPqG0haVlLtCwG3w9/F063ukiwrkfKbkQPSWdyyJpXFW A5uDlEcirs6AXfaH/gmK0cIG5M3yie3V4pehAGzUoiPUlusgI9GOgdaeRm/ODJVGn/1e nR2Kdkp/knYf2egma6h6YP7wQC64lMveQYgqJpVXeWlRDLviLht1Xxxk5u0f5+7HK7I8 Mpsh0myx12l71hEeAEKjtlVoNiDS48JGpCLdeXsmdmO5Tmw0Z30WY9ID+Dw7vfRFTKGw JL0Q== X-Gm-Message-State: ALoCoQlNWv1WbI/Nff8x8i8GEXlCIAuHSL+ToaAX7Q6tTfrM8Gh9tckXkQLLSG9bcKCcIS+pwCpJ X-Received: by 10.236.18.196 with SMTP id l44mr1423543yhl.52.1386088673372; Tue, 03 Dec 2013 08:37:53 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.3.165 with SMTP id d5ls4171143qed.77.gmail; Tue, 03 Dec 2013 08:37:53 -0800 (PST) X-Received: by 10.221.19.5 with SMTP id qi5mr55485059vcb.15.1386088673264; Tue, 03 Dec 2013 08:37:53 -0800 (PST) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id cx4si31593343vcb.5.2013.12.03.08.37.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Dec 2013 08:37:53 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.170 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.170; Received: by mail-vc0-f170.google.com with SMTP id ht10so10109521vcb.15 for ; Tue, 03 Dec 2013 08:37:53 -0800 (PST) X-Received: by 10.220.199.5 with SMTP id eq5mr56728287vcb.16.1386088673063; Tue, 03 Dec 2013 08:37:53 -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.220.174.196 with SMTP id u4csp222389vcz; Tue, 3 Dec 2013 08:37:52 -0800 (PST) X-Received: by 10.68.235.72 with SMTP id uk8mr39789382pbc.93.1386088672161; Tue, 03 Dec 2013 08:37:52 -0800 (PST) Received: from mail-pd0-f173.google.com (mail-pd0-f173.google.com [209.85.192.173]) by mx.google.com with ESMTPS id v7si51888609pbi.8.2013.12.03.08.37.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Dec 2013 08:37:50 -0800 (PST) Received-SPF: neutral (google.com: 209.85.192.173 is neither permitted nor denied by best guess record for domain of hanjun.guo@linaro.org) client-ip=209.85.192.173; Received: by mail-pd0-f173.google.com with SMTP id p10so20434950pdj.32 for ; Tue, 03 Dec 2013 08:37:49 -0800 (PST) X-Received: by 10.68.231.105 with SMTP id tf9mr39623842pbc.4.1386088669007; Tue, 03 Dec 2013 08:37:49 -0800 (PST) Received: from localhost ([219.142.3.202]) by mx.google.com with ESMTPSA id ik1sm104354600pbc.9.2013.12.03.08.37.40 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 03 Dec 2013 08:37:48 -0800 (PST) From: Hanjun Guo To: "Rafael J. Wysocki" , Catalin Marinas , Will Deacon , Russell King - ARM Linux , Daniel Lezcano 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 , Jon Masters , patches@linaro.org, linux-kernel@vger.kernel.org, linaro-kernel@lists.linaro.org, linaro-acpi@lists.linaro.org, Hanjun Guo , Graeme Gregory Subject: [RFC part1 PATCH 2/7] ARM64 : Add dummy asm/cpu.h Date: Wed, 4 Dec 2013 00:36:46 +0800 Message-Id: <1386088611-2801-3-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1386088611-2801-1-git-send-email-hanjun.guo@linaro.org> References: <1386088611-2801-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.170 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: , ACPI requires a cpu.h, add a dummy one copied from arm. This will need updated or replaced as ACPI based cpu hotplug 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..dbeb98d --- /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; + u32 cpuid; +#ifdef CONFIG_SMP + unsigned int loops_per_jiffy; +#endif +}; + +DECLARE_PER_CPU(struct cpuinfo_arm, cpu_data); + +#endif