From patchwork Tue Jan 24 00:05:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 6356 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 1B0882427F for ; Tue, 24 Jan 2012 00:06:54 +0000 (UTC) Received: from mail-bk0-f52.google.com (mail-bk0-f52.google.com [209.85.214.52]) by fiordland.canonical.com (Postfix) with ESMTP id 01117A1807A for ; Tue, 24 Jan 2012 00:06:53 +0000 (UTC) Received: by mail-bk0-f52.google.com with SMTP id r19so3474661bka.11 for ; Mon, 23 Jan 2012 16:06:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.205.139.12 with SMTP id iu12mr4020391bkc.2.1327363613812; Mon, 23 Jan 2012 16:06:53 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.204.130.220 with SMTP id u28cs85863bks; Mon, 23 Jan 2012 16:06:53 -0800 (PST) Received: by 10.68.200.5 with SMTP id jo5mr25513507pbc.106.1327363611473; Mon, 23 Jan 2012 16:06:51 -0800 (PST) Received: from e31.co.us.ibm.com (e31.co.us.ibm.com. [32.97.110.149]) by mx.google.com with ESMTPS id l9si18419734pbi.136.2012.01.23.16.06.50 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 23 Jan 2012 16:06:51 -0800 (PST) Received-SPF: pass (google.com: domain of jstultz@us.ibm.com designates 32.97.110.149 as permitted sender) client-ip=32.97.110.149; Authentication-Results: mx.google.com; spf=pass (google.com: domain of jstultz@us.ibm.com designates 32.97.110.149 as permitted sender) smtp.mail=jstultz@us.ibm.com Received: from /spool/local by e31.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 23 Jan 2012 17:06:49 -0700 Received: from d03dlp01.boulder.ibm.com (9.17.202.177) by e31.co.us.ibm.com (192.168.1.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 23 Jan 2012 17:06:46 -0700 Received: from d03relay01.boulder.ibm.com (d03relay01.boulder.ibm.com [9.17.195.226]) by d03dlp01.boulder.ibm.com (Postfix) with ESMTP id 923131FF0050; Mon, 23 Jan 2012 17:06:45 -0700 (MST) Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay01.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q0O06ADe101638; Mon, 23 Jan 2012 17:06:12 -0700 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q0O069a5004339; Mon, 23 Jan 2012 17:06:09 -0700 Received: from kernel.beaverton.ibm.com (kernel.beaverton.ibm.com [9.47.67.96]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q0O068tD004236; Mon, 23 Jan 2012 17:06:09 -0700 Received: by kernel.beaverton.ibm.com (Postfix, from userid 1056) id B0A9EBFE5C; Mon, 23 Jan 2012 16:06:07 -0800 (PST) From: John Stultz To: lkml Cc: John Stultz , Ralf Baechle , Yong Zhang , linux-mips@linux-mips.org Subject: [PATCH 3/3] clocksource: Convert mips pnx8550 to use clocksource_register_hz Date: Mon, 23 Jan 2012 16:05:50 -0800 Message-Id: <1327363550-19952-4-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.7.3.2.146.gca209 In-Reply-To: <1327363550-19952-1-git-send-email-john.stultz@linaro.org> References: <1327363550-19952-1-git-send-email-john.stultz@linaro.org> X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12012400-7282-0000-0000-000005DDD5F4 X-Gm-Message-State: ALoCoQm34+YmrK/ZZy06A2m8rV43OVjJKue56nllZyXeZkPp+Wmrz+NVcSJTiQ/WAKD+2RC3XTRN This patch converts the registration to use clocksource_register_hz() but is clearly broken, as the pnx_clocksource doesn't seem to set a proper mult/shift pair. CC: Ralf Baechle CC: Yong Zhang CC: linux-mips@linux-mips.org Signed-off-by: John Stultz --- arch/mips/pnx8550/common/time.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch/mips/pnx8550/common/time.c b/arch/mips/pnx8550/common/time.c index 831d6b3..006ac88 100644 --- a/arch/mips/pnx8550/common/time.c +++ b/arch/mips/pnx8550/common/time.c @@ -104,7 +104,12 @@ __init void plat_time_init(void) pnx8xxx_clockevent.cpumask = cpu_none_mask; clockevents_register_device(&pnx8xxx_clockevent); - clocksource_register(&pnx_clocksource); + + /* + * XXX - Nothing seems to set pnx_clocksource mult/shift! + * So I don't know what freq to use here. Help! -johnstul + */ + clocksource_register_hz(&pnx_clocksource, 0); /* Timer 1 start */ configPR = read_c0_config7();