From patchwork Sat Jan 10 00:34:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 42937 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f198.google.com (mail-we0-f198.google.com [74.125.82.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C6F2A26CF1 for ; Sat, 10 Jan 2015 00:35:05 +0000 (UTC) Received: by mail-we0-f198.google.com with SMTP id q59sf5656052wes.1 for ; Fri, 09 Jan 2015 16:35:05 -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=HgFWxYgEGBvhuIr5ko4dGxKNZjCObNwW/HJ7HqykDTc=; b=YsiruQyOnwVj1mcy7Tiyz7bRtLXdDllyJ1CZs8ntqWOU0DEcqGFoANylX2766v2qw8 YfISXe6CNgHXMeMIe6rKwVM9THcSw9nPCocEzM9WlggvMgAt8spcvTYAneB6V49tlmGE w7Dz9A8qVEk50NYLJTLN6fbA3aRqyj7+IDPEzR5Q0qY+rnZ1wAcbk+/4ZKh4szLWoRt7 +wxysuudM0HXcPOY7NWgo0tm+LfyS+qi2ZYkeRTqlYoZ45l0qCnd9i2/rFVhLfjQpg+O AyDqIRsgaE61FkVngJH3mwHOINjzIe0jZLC6Ed8hb4T4WTUhbEPGOxt/uF5sn1gjchd8 luMA== X-Gm-Message-State: ALoCoQnZiwwC8RQFLi/uczUuSW8U41cpbqA2EzUIIm5RBdtDGxnkwp8cyadpYkhFVJF3dvSZZ16k X-Received: by 10.180.24.35 with SMTP id r3mr764457wif.0.1420850105095; Fri, 09 Jan 2015 16:35:05 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.20.41 with SMTP id k9ls449174lae.104.gmail; Fri, 09 Jan 2015 16:35:04 -0800 (PST) X-Received: by 10.112.61.231 with SMTP id t7mr24634357lbr.60.1420850104851; Fri, 09 Jan 2015 16:35:04 -0800 (PST) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id xo10si14672043lbb.34.2015.01.09.16.35.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Jan 2015 16:35:04 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id ms9so17066038lab.10 for ; Fri, 09 Jan 2015 16:35:04 -0800 (PST) X-Received: by 10.152.6.132 with SMTP id b4mr24808765laa.59.1420850104763; Fri, 09 Jan 2015 16:35:04 -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.112.9.200 with SMTP id c8csp484851lbb; Fri, 9 Jan 2015 16:35:04 -0800 (PST) X-Received: by 10.68.135.197 with SMTP id pu5mr27340839pbb.105.1420850088488; Fri, 09 Jan 2015 16:34:48 -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 qj2si15458138pbc.35.2015.01.09.16.34.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Jan 2015 16:34:48 -0800 (PST) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.192.173 as permitted sender) client-ip=209.85.192.173; Received: by mail-pd0-f173.google.com with SMTP id ft15so20248752pdb.4 for ; Fri, 09 Jan 2015 16:34:47 -0800 (PST) X-Received: by 10.70.89.207 with SMTP id bq15mr27161555pdb.68.1420850087591; Fri, 09 Jan 2015 16:34:47 -0800 (PST) Received: from localhost.localdomain (c-67-170-153-23.hsd1.or.comcast.net. [67.170.153.23]) by mx.google.com with ESMTPSA id hc10sm8046439pbd.78.2015.01.09.16.34.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Jan 2015 16:34:46 -0800 (PST) From: John Stultz To: Linux Kernel Mailing List Cc: John Stultz , Dave Jones , Linus Torvalds , Thomas Gleixner , Richard Cochran , Prarit Bhargava , Stephen Boyd , Ingo Molnar , Peter Zijlstra Subject: [PATCH 10/10] clocksource: Add some debug info about clocksources being registered Date: Fri, 9 Jan 2015 16:34:28 -0800 Message-Id: <1420850068-27828-11-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1420850068-27828-1-git-send-email-john.stultz@linaro.org> References: <1420850068-27828-1-git-send-email-john.stultz@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: john.stultz@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.215.51 as permitted sender) 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: , Print the mask, max_cycles, and max_idle_ns values for clocksources being registered. Cc: Dave Jones Cc: Linus Torvalds Cc: Thomas Gleixner Cc: Richard Cochran Cc: Prarit Bhargava Cc: Stephen Boyd Cc: Ingo Molnar Cc: Peter Zijlstra Signed-off-by: John Stultz --- kernel/time/clocksource.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index 9a0b951..c641aa7 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c @@ -770,6 +770,10 @@ void __clocksource_updatefreq_scale(struct clocksource *cs, u32 scale, u32 freq) cs->max_idle_ns = clocks_calc_max_nsecs(cs->mult, cs->shift, cs->maxadj, cs->mask, &cs->max_cycles); + + pr_info("clocksource %s: mask: 0x%llx max_cycles: 0x%llx, max_idle_ns: %lld ns\n", + cs->name, cs->mask, cs->max_cycles, cs->max_idle_ns); + } EXPORT_SYMBOL_GPL(__clocksource_updatefreq_scale);