From patchwork Fri Nov 9 12:37:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincenzo Frascino X-Patchwork-Id: 10675877 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 96E4814BD for ; Fri, 9 Nov 2018 12:46:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8551A2EC26 for ; Fri, 9 Nov 2018 12:46:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 78BBD2EC49; Fri, 9 Nov 2018 12:46:02 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 759532EC3F for ; Fri, 9 Nov 2018 12:46:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gMspJznWPbEw5AxJmgz9Gam7XsnRQ3YtiI6xyZgE84o=; b=olqQ47uP/ViQV5 CGN/8gbOAXd69j8cawBNlnKPrxgcjcGuF8UbbH7OKv6L5TaMTaZR8XgJ79HVrCZ/5zrAgk6lIdwGD EstRqk8phZj7MYQ9C5cGQrFlzwrkU9LMLqgfxZrnyYbrsvmMN0/iCbEQV5V2WARIJKS+N4Q1pKFp0 o2WLO1qJiuNYDCS4D9kte4hwGMOxBuaYvraupDYbwLk5lWUbHyXhRW9kUUIY5WtiUSWUtO9xPWL8o +SBFpy4fLgBzfQ4N1C0A43ldZSkq12NqJo3SZAywWHrZYrVtFj11CRg4qti5gMh1nSZBqdTrjShVD Dvym67UKX425m1XJ0iKA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gL6Ag-0005Ua-ER; Fri, 09 Nov 2018 12:45:58 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gL63w-0005O6-Il for linux-arm-kernel@bombadil.infradead.org; Fri, 09 Nov 2018 12:39:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Bs/nR+nz3HcMtSGicVX1JqvGXwngEfjbqwa2js1uNhA=; b=W4Wpw7oWKxT+5T76AsTgeRJJiF iNcV8VmscVNN2rbpZDyL7Oz9uOWqrdFfSZpTRIA0uh4eqa2CrRdL82xWVJjOX41ENKlcu9c9ZzpNT TkQgjc8XOsRobsBQIUOhMJZfT2ryAvBVaLgMKkAvwGhAlfGOKqJ4ipDn+SkkhN/T7lwoXCaZuTaif 1529eMNSU9Zn/ZdrBWBs19nlQB9/w4R+oIUo4dDDegX8MTwbzWha7rhJKGtD4OEhTNMzkuADOH3TT 7z4FW36BUyeHq8lYWF47jhps/KTInQJh2tHJgd4O0zRidmktIGnsuXXEXVOfcX6yBUXaq5Dd/QV7P ToTg0ifg==; Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by merlin.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gL63s-0003wl-5e for linux-arm-kernel@lists.infradead.org; Fri, 09 Nov 2018 12:38:57 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4A1A115AB; Fri, 9 Nov 2018 04:38:50 -0800 (PST) Received: from e119884-lin.cambridge.arm.com (e119884-lin.cambridge.arm.com [10.1.196.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 386FE3F718; Fri, 9 Nov 2018 04:38:48 -0800 (PST) From: Vincenzo Frascino To: linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 26/27] clock: gic-timer: Add support for vdso_direct Date: Fri, 9 Nov 2018 12:37:29 +0000 Message-Id: <20181109123730.8743-27-vincenzo.frascino@arm.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181109123730.8743-1-vincenzo.frascino@arm.com> References: <20181109123730.8743-1-vincenzo.frascino@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181109_073856_327126_85A781DD X-CRM114-Status: GOOD ( 16.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , Catalin Marinas , Daniel Lezcano , Will Deacon , Russell King , Ralf Baechle , Mark Salyzyn , Paul Burton , Thomas Gleixner , Peter Collingbourne Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch is a consequence of the introduction of vdso_direct on mips architectures. If the clock source is selected, vdso_direct is set to true. Cc: Daniel Lezcano Cc: Thomas Gleixner Signed-off-by: Vincenzo Frascino --- drivers/clocksource/mips-gic-timer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/mips-gic-timer.c b/drivers/clocksource/mips-gic-timer.c index 54f8a331b53a..e7e0789084cd 100644 --- a/drivers/clocksource/mips-gic-timer.c +++ b/drivers/clocksource/mips-gic-timer.c @@ -158,7 +158,10 @@ static struct clocksource gic_clocksource = { .name = "GIC", .read = gic_hpt_read, .flags = CLOCK_SOURCE_IS_CONTINUOUS, - .archdata = { .vdso_clock_mode = VDSO_CLOCK_GIC }, + .archdata = { + .vdso_direct = true, + .vdso_clock_mode = VDSO_CLOCK_GIC + }, }; static int __init __gic_clocksource_init(void)