From patchwork Thu Nov 24 06:19:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J, KEERTHY" X-Patchwork-Id: 9444885 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AEA8B6075F for ; Thu, 24 Nov 2016 06:20:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A166A26E16 for ; Thu, 24 Nov 2016 06:20:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 92A6026E5D; Thu, 24 Nov 2016 06:20:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 244F026E16 for ; Thu, 24 Nov 2016 06:20:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754500AbcKXGUW (ORCPT ); Thu, 24 Nov 2016 01:20:22 -0500 Received: from lelnx193.ext.ti.com ([198.47.27.77]:37717 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752895AbcKXGUV (ORCPT ); Thu, 24 Nov 2016 01:20:21 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id uAO6Japg005938; Thu, 24 Nov 2016 00:19:36 -0600 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id uAO6JZdC013487; Thu, 24 Nov 2016 00:19:35 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.294.0; Thu, 24 Nov 2016 00:19:35 -0600 Received: from ula0393675.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id uAO6JSLG021046; Thu, 24 Nov 2016 00:19:32 -0600 From: Keerthy To: CC: , , , , , , Grygorii Strashko , Dave Gerlach Subject: [PATCH 2/2] ARM: omap: timers: reduce rating of gp_timer clocksource Date: Thu, 24 Nov 2016 11:49:15 +0530 Message-ID: <1479968355-18860-2-git-send-email-j-keerthy@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1479968355-18860-1-git-send-email-j-keerthy@ti.com> References: <1479968355-18860-1-git-send-email-j-keerthy@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Grygorii Strashko Now ARM Global timer (rating 300) will not be selected as clocksource, because it's initialized after OMAP GP Timer (rating 300) and Timekeeping core will not allow to replace clocksource with new one if both of them have the same rating. Reduce rating of OMAP GP Timer (300->290) when it's used as clocksource device - this will allow to select ARM Global timer (300) as clocksource when enabled. Signed-off-by: Grygorii Strashko Signed-off-by: Dave Gerlach Signed-off-by: Keerthy --- arch/arm/mach-omap2/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c index b2f2448..a0dbb0b 100644 --- a/arch/arm/mach-omap2/timer.c +++ b/arch/arm/mach-omap2/timer.c @@ -376,7 +376,7 @@ static cycle_t clocksource_read_cycles(struct clocksource *cs) } static struct clocksource clocksource_gpt = { - .rating = 300, + .rating = 290, .read = clocksource_read_cycles, .mask = CLOCKSOURCE_MASK(32), .flags = CLOCK_SOURCE_IS_CONTINUOUS,