From patchwork Mon Jan 21 01:22:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Abraham X-Patchwork-Id: 2009041 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 391833FED4 for ; Mon, 21 Jan 2013 01:26:04 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Tx65j-00024Z-LF; Mon, 21 Jan 2013 01:22:27 +0000 Received: from mail-yh0-f50.google.com ([209.85.213.50]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Tx65Z-00024I-Fh for linux-arm-kernel@lists.infradead.org; Mon, 21 Jan 2013 01:22:22 +0000 Received: by mail-yh0-f50.google.com with SMTP id z12so764250yhz.37 for ; Sun, 20 Jan 2013 17:22:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=SO8RQDva4EGWkp00hjpwgscTwDcel42+iOY5Dmlxiks=; b=N5M79FfUPHtUpbrtheM9gqxLq0VOYAAYrHobA8T6xbhPyLAkKzNfoPmE46VIbqwvxC ejZ6fEZNRX6dLpj99bNGU8ICecaGNl/Ld5UWPR6is8QowVv28HG4DKKg43I8e9KIDE7e yOhytT2feP+ZPPeAGQhSvNjBaJzqxmSToewLcntjn5MESxgErzVcLvJ9vtRcREnqGsj5 jNrylt8OQ2eU6HoSrBPMRkcDGhkvSyLolGcE8dDPSqvznyBySXFQMDiOEuvvtCywihBX 6QRhlJ+5uQqHZ4Py5XOOnCsEeA3xAh3AoMud5Oa/L9Yd6hsx2GGHW4TnMirh79rttZ6s OTrQ== X-Received: by 10.236.149.111 with SMTP id w75mr18364791yhj.35.1358731335844; Sun, 20 Jan 2013 17:22:15 -0800 (PST) Received: from localhost.localdomain (D32451F2.uspool.samsung.com. [211.36.81.242]) by mx.google.com with ESMTPS id z1sm10444168anj.2.2013.01.20.17.22.13 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 20 Jan 2013 17:22:15 -0800 (PST) From: Thomas Abraham To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: architected timers: allow dt based discovery using clocksource_of_init Date: Sun, 20 Jan 2013 17:22:06 -0800 Message-Id: <1358731326-2979-1-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.7.5.4 X-Gm-Message-State: ALoCoQlIB1E/QxODaQs9oJLTMWDObkEfOSJya42gXtPx81dPR4byWujL48bqMHYoZkKuwKjUV6mF X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130120_202217_689014_EEEC940B X-CRM114-Status: UNSURE ( 8.89 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.50 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: swarren@nvidia.com, marc.zyngier@arm.com, johnstul@us.ibm.com, devicetree-discuss@lists.ozlabs.org, rob.herring@calxeda.com, grant.likely@secretlab.ca X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add an entry in __clksrc_of_table so that ARMv7 architected timer is discoverable using call to clocksource_of_init. Signed-off-by: Thomas Abraham --- arch/arm/kernel/arch_timer.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/kernel/arch_timer.c b/arch/arm/kernel/arch_timer.c index c8ef207..d21aada 100644 --- a/arch/arm/kernel/arch_timer.c +++ b/arch/arm/kernel/arch_timer.c @@ -504,6 +504,9 @@ int __init arch_timer_of_register(void) return arch_timer_register(); } +#ifdef CONFIG_CLKSRC_OF +CLOCKSOURCE_OF_DECLARE(armv7_timer, "arm,armv7-timer", arch_timer_of_register) +#endif int __init arch_timer_sched_clock_init(void) {