From patchwork Thu May 21 08:32:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fu Wei Fu X-Patchwork-Id: 48847 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0316921411 for ; Thu, 21 May 2015 08:33:34 +0000 (UTC) Received: by lagr1 with SMTP id r1sf24664675lag.3 for ; Thu, 21 May 2015 01:33:33 -0700 (PDT) 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=8PXhYKsw3HtCNxh0s1heDvwq64oAsATnxZy7QCiLryo=; b=BoLRA3YxYMIhLOfLX95F7WeZHWL6pzeTwycwpMwXPIEbDd+6NNHL7y6P4opj1b+klf xQiKB7RroGa4FHaobmBnGOppRR8PE30evWensTU/N+ho4PgnSAhyam4i6LjoDxhFtES4 CcFlyglJQWgrtXRDX9iR+4GmPCcZ8Xl8iFdiSvSDBkCnQE5yikD4PrnPI2X9ZT3tAJ0Z /CYLyoXKQFFYtEGJzI45yV8vQ3CUPMNib37jfjp23fU8yZHJ/YwRLagjCEl8Ai3Vhrov iAXUnUl0ZJSvLXvJhGOfsl1WQ7RvkYFdH0Wx0dLpE7uJKhHLTwYyVAqTSCGlw/8XMNL4 FMoQ== X-Gm-Message-State: ALoCoQmS2H4/8tnqVRgHQMEnUcrzTy+Rb+keMnbgxa0L4aA58bFP9KYayTO/aivcFiuO+6Fs/r/U X-Received: by 10.180.97.9 with SMTP id dw9mr2113106wib.2.1432197212707; Thu, 21 May 2015 01:33:32 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.203.227 with SMTP id kt3ls266827lac.18.gmail; Thu, 21 May 2015 01:33:32 -0700 (PDT) X-Received: by 10.152.7.65 with SMTP id h1mr1251720laa.33.1432197212538; Thu, 21 May 2015 01:33:32 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id o3si12831761laf.40.2015.05.21.01.33.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 May 2015 01:33:32 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by lbbuc2 with SMTP id uc2so12662566lbb.2 for ; Thu, 21 May 2015 01:33:32 -0700 (PDT) X-Received: by 10.152.7.7 with SMTP id f7mr1282494laa.106.1432197212456; Thu, 21 May 2015 01:33:32 -0700 (PDT) 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.112.108.230 with SMTP id hn6csp398626lbb; Thu, 21 May 2015 01:33:31 -0700 (PDT) X-Received: by 10.66.141.77 with SMTP id rm13mr3491274pab.14.1432197210669; Thu, 21 May 2015 01:33:30 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id nz10si30595119pdb.115.2015.05.21.01.33.29 for ; Thu, 21 May 2015 01:33:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-watchdog-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 S1754951AbbEUIdZ (ORCPT ); Thu, 21 May 2015 04:33:25 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:36026 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754857AbbEUIdV (ORCPT ); Thu, 21 May 2015 04:33:21 -0400 Received: by pdfh10 with SMTP id h10so100486365pdf.3 for ; Thu, 21 May 2015 01:33:21 -0700 (PDT) X-Received: by 10.70.43.176 with SMTP id x16mr3341985pdl.83.1432197201010; Thu, 21 May 2015 01:33:21 -0700 (PDT) Received: from localhost.localdomain ([205.147.105.74]) by mx.google.com with ESMTPSA id zf1sm18415820pbc.43.2015.05.21.01.33.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 May 2015 01:33:20 -0700 (PDT) From: fu.wei@linaro.org To: Suravee.Suthikulpanit@amd.com, linaro-acpi@lists.linaro.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Cc: tekkamanninja@gmail.com, graeme.gregory@linaro.org, al.stone@linaro.org, hanjun.guo@linaro.org, timur@codeaurora.org, ashwin.chaugule@linaro.org, arnd@arndb.de, linux@roeck-us.net, vgandhi@codeaurora.org, wim@iguana.be, jcm@redhat.com, leo.duran@amd.com, corbet@lwn.net, mark.rutland@arm.com, Fu Wei Subject: [PATCH v2 1/7] clocksource: export "arch_timer_get_rate" for the other drivers Date: Thu, 21 May 2015 16:32:30 +0800 Message-Id: <1432197156-16947-2-git-send-email-fu.wei@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432197156-16947-1-git-send-email-fu.wei@linaro.org> References: <=fu.wei@linaro.org> <1432197156-16947-1-git-send-email-fu.wei@linaro.org> Sender: linux-watchdog-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: fu.wei@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) 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: , From: Fu Wei Some devices get clock from system counter, like SBSA watchdog driver. They may need to get system counter rate. Signed-off-by: Fu Wei Acked-by: Hanjun Guo --- drivers/clocksource/arm_arch_timer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c index 0aa135d..4327bf9 100644 --- a/drivers/clocksource/arm_arch_timer.c +++ b/drivers/clocksource/arm_arch_timer.c @@ -410,6 +410,7 @@ u32 arch_timer_get_rate(void) { return arch_timer_rate; } +EXPORT_SYMBOL_GPL(arch_timer_get_rate); static u64 arch_counter_get_cntvct_mem(void) {