From patchwork Thu Dec 13 16:57:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincenzo Frascino X-Patchwork-Id: 10729187 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 AEB936C5 for ; Thu, 13 Dec 2018 17:04:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A4DA2A175 for ; Thu, 13 Dec 2018 17:04:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C18F2A195; Thu, 13 Dec 2018 17:04:22 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 395502A175 for ; Thu, 13 Dec 2018 17:04:22 +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=qr1/Ogpn3u2HAkqwiyMWlX95H4PIuKzT3GEIlUSlE9U=; b=fx0Mme6dXoYPHO 2G0135lRQrwwrZ3ERq3PF5NdpBYRfAwpf0V7YBinLwtuPaKmFXRtMqusaz013RIR2QznBvPs2WY+9 MtzO/GYEOxZ3AY9OVCTk9qhu6VcYXURpQ88HpKpC+pHIu6jC0a8G1agbfA5U85KHxXrGaP7NURBom sgwqwGhJv92bzI2ftKVLvam/fRem0Np9itV5tEepd8W6vFS1FCcfq9M/jHe7HeHJ1bnJEoTUHgVgk ae4KFpyFI4wEcUTAcXxqTkkKU5Q+79fD3+RTQI74rzyx2cEcte1+pyShWmNn/OZ3OEknkqURJH4WA naRTunSimvD0E5/Zb1iw==; 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 1gXUPL-0005V0-E5; Thu, 13 Dec 2018 17:04:19 +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 1gXUKz-0008E9-Qb for linux-arm-kernel@bombadil.infradead.org; Thu, 13 Dec 2018 16:59:49 +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=/rKSHaLu4coT+17WwEd/IKqSCjh9LV/PzDiIcyAWx8c=; b=f3h8vRs+MDsYfLJGBMvfc3axq0 rnRYRyYLBB0kBlrmSjmX384zAZfagflGQRVqJu0c3wNxhy8NFpRrVvtNGWtQMIKeqlKBamhAJrxL8 wAMfElCa/Qk+92F+T3P2h5wPmljAL4OVe7b6rDCuYxqyERQu0Czx6MvTxrOCkBk2oisx45oTcwUuP ZUDyziNuykkQmve68WgfKnc3Ub0Z+248EYJRl0m3qVXpkcO7+xpFF2+R90hXuadM46m5PfRUH5E5X o4zxe/eJv+jEjCPitgG+rxD0e3FKY45z7T8ufNQgfLOzHEeK4q0gx0Qb+cYQXt/CL7i0PbgWEC5zP 4LKXrJSg==; 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 1gXUKx-0005jN-7Q for linux-arm-kernel@lists.infradead.org; Thu, 13 Dec 2018 16:59:48 +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 1513D15AB; Thu, 13 Dec 2018 08:59:47 -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 01FB53F614; Thu, 13 Dec 2018 08:59:44 -0800 (PST) From: Vincenzo Frascino To: linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 23/24] clock: gic-timer: Add support for vdso_direct Date: Thu, 13 Dec 2018 16:57:45 +0000 Message-Id: <20181213165746.56930-24-vincenzo.frascino@arm.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181213165746.56930-1-vincenzo.frascino@arm.com> References: <20181213165746.56930-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-20181213_115947_542561_76CA2D3E X-CRM114-Status: GOOD ( 16.49 ) 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)