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: 3277511 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 68C1FC0D4A for ; Tue, 3 Dec 2013 16:39:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 46DF02037D for ; Tue, 3 Dec 2013 16:39:24 +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 7DA4D203EB for ; Tue, 3 Dec 2013 16:39:19 +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 1VnszV-0004jm-OP; Tue, 03 Dec 2013 16:38:30 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VnszG-0000qM-Bl; Tue, 03 Dec 2013 16:38:14 +0000 Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VnszC-0000nE-SQ for linux-arm-kernel@lists.infradead.org; Tue, 03 Dec 2013 16:38:11 +0000 Received: by mail-pb0-f49.google.com with SMTP id jt11so21339296pbb.36 for ; Tue, 03 Dec 2013 08:37:49 -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=2OS8Z2LTj/oQDQ7AJXem7dAwqexBaT3h7K5hI6coKHc=; b=KNwpOyck0qA/JJrE/weYEV8rszVECIDG+8bUhgQhN0MGwwD7u3wxXE1AxwKtAH9bdF eT/emG/eIXROxZwjK5KXtYq6VefRZhYytci7SuFAZ41pB/1jSYSwv1cRcp7j1TFqbOI5 7WdTkLHq5TF6bwQVaIbwdvIqsqfw1SFAjYYDeRMDJf+bmwmdBv1jEGZwF6PfzDzVc5qD ncE4MRuAvxkP71RgyqX1weHuigSeDZE0deeSxcBqmId7U9x+my1l/cFHZg7HTyeYTTDt 4OehtXOqR2KWPpl53Y2HqTdUD3f4Nioam8ASsRhVxQ6FfybmYUCuJBa+eZAllE9hPVyL Ubqw== X-Gm-Message-State: ALoCoQmaTgd3tl4HstO/gEws7oqZPr0ERk+meUgjjfyvJ863FxR5tNUG2un5Csn/QfIuEgWo2zkI 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131203_113811_020304_50C6591C X-CRM114-Status: GOOD ( 11.73 ) X-Spam-Score: -2.6 (--) Cc: Mark Rutland , Matthew Garrett , linaro-kernel@lists.linaro.org, Graeme Gregory , patches@linaro.org, Linus Walleij , Olof Johansson , linux-kernel@vger.kernel.org, Rob Herring , linaro-acpi@lists.linaro.org, linux-acpi@vger.kernel.org, Jon Masters , Grant Likely , Bjorn Helgaas , linux-arm-kernel@lists.infradead.org, Hanjun Guo 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=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 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