Message ID | 20181109123730.8743-26-vincenzo.frascino@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 65F0A14BD for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 9 Nov 2018 12:55:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F6302E36E for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 9 Nov 2018 12:55:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C59E2EC28; Fri, 9 Nov 2018 12:55:13 +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 4BA582EA9F for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 9 Nov 2018 12:55:12 +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=tVnMYvJllSWKbeXPQa+phwW76szDx9QRAirdFTaTPxQ=; b=jBLGgohBcLffQM nP2bzXtXRjoiBCVbKsutlzaSRA0D7UQgiszgp+7Lrw0jtsiuUglETKllPnFLUMOVxpoei3fgorwVi mZAs4YiUnEEOP3ZZayKvr/keeYNn3FX+8n0NuUAkMYX4Y7Svn9DDRurcw/qHJwNSrKkHchUSUDiz9 y/XQJrkeftt90UW/03bQIFlaJu1LT2ZAb0wxJ96Sqoj+VSOK7b4xneDjEuYu9VGqGivZduzUoCTB2 CdIMFoJWfEjEb2KbLluIKzsEQQ4N/iPss0Fkl72dwDgMeLdrIgm62/T4TjIl7PsCRAAwzODA4V9gR uShCCMoE/GunhgQTlvSA==; 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 1gL6JY-0008TV-Vk; Fri, 09 Nov 2018 12:55:08 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gL6J9-0007aM-4C for linux-arm-kernel@bombadil.infradead.org; Fri, 09 Nov 2018 12:54:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=o3YJ16NuVaJy+RnEH2CUepsuOBnfOXIRvim8tL1Wg3g=; b=uHJF0h2NEdBDaCGUL9fwAjlAKR 6G0J7qY5k9d3kt85Vo2DrKn751rscsmwPCV882CvWaUvTar++Delgg37M6qEyxoH8IED9VEnmp/q9 XmpatpJLqy01nCWG4joz3jRiZYnDbxBgWvqW/eRkccp5VMjFqEw4EXjqCreyYNSzsJS+3XAXS6A1d F4cXPUpkdNUnmaIpKYsqlBt/BNsFl89CYNwP5VJGcsHXR/e/iHMYZQE0LkBKWOoX+9lvlfSEmeAB4 BasbcgvS0fwKP8NpFt/lPlh+YBs6x/EVmrbQ6C2dDAsruJr8xrz1CR2RAF+Bu6ZmMl4QYWzxtQo+2 ISNJTxjg==; Received: from foss.arm.com ([217.140.101.70]) by casper.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gL63u-0006aO-Jv for linux-arm-kernel@lists.infradead.org; Fri, 09 Nov 2018 12:39:00 +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 EE2FD15AD; Fri, 9 Nov 2018 04:38: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 DD0563F718; Fri, 9 Nov 2018 04:38:45 -0800 (PST) From: Vincenzo Frascino <vincenzo.frascino@arm.com> To: linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 25/27] clock: csrc-4k: Add support for vdso_direct Date: Fri, 9 Nov 2018 12:37:28 +0000 Message-Id: <20181109123730.8743-26-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_123858_801685_9C3C8288 X-CRM114-Status: GOOD ( 13.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Arnd Bergmann <arnd@arndb.de>, Catalin Marinas <catalin.marinas@arm.com>, Daniel Lezcano <daniel.lezcano@linaro.org>, Will Deacon <will.deacon@arm.com>, Russell King <linux@armlinux.org.uk>, Ralf Baechle <ralf@linux-mips.org>, Mark Salyzyn <salyzyn@android.com>, Paul Burton <paul.burton@mips.com>, Thomas Gleixner <tglx@linutronix.de>, Peter Collingbourne <pcc@google.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Unify vDSOs across more architectures
|
expand
|
diff --git a/arch/mips/kernel/csrc-r4k.c b/arch/mips/kernel/csrc-r4k.c index eed099f35bf1..97e2a8aafdd6 100644 --- a/arch/mips/kernel/csrc-r4k.c +++ b/arch/mips/kernel/csrc-r4k.c @@ -77,8 +77,10 @@ int __init init_r4k_clocksource(void) * R2 onwards makes the count accessible to user mode so it can be used * by the VDSO (HWREna is configured by configure_hwrena()). */ - if (cpu_has_mips_r2_r6 && rdhwr_count_usable()) + if (cpu_has_mips_r2_r6 && rdhwr_count_usable()) { + clocksource_mips.archdata.vdso_direct = true; clocksource_mips.archdata.vdso_clock_mode = VDSO_CLOCK_R4K; + } clocksource_register_hz(&clocksource_mips, mips_hpt_frequency);
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: Ralf Baechle <ralf@linux-mips.org> Cc: Paul Burton <paul.burton@mips.com> Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com> --- arch/mips/kernel/csrc-r4k.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)