Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8088718imu; Tue, 4 Dec 2018 02:46:31 -0800 (PST) X-Google-Smtp-Source: AFSGD/W0Oms3DE6rbaPhL8OrWDmGMmNsKMKrVZiZkL8wzfhy3aTvchGDpoUI6c5RNeFt5KE01bkq X-Received: by 2002:aa7:8286:: with SMTP id s6mr19104610pfm.63.1543920391724; Tue, 04 Dec 2018 02:46:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543920391; cv=none; d=google.com; s=arc-20160816; b=Av/yt9Pa46hwXTQVDrGpUIxtbAgFl+YAVfGznt6x+rtuRDaEhTkLZEBkJo/Ow4A0zH oXmcCRQAWzVm5mE7ieO6PKFoC55yNAa4pYdqZ9dPxwEUrj08EXmhpMicHKW1PofV9b8Z KcwiIpGwFikXaiy3k7tkUpbjklbH3RHLLk7fyCBYrvDJUb+OzD43mATfl0J09JtrhBYE LE1KyxCm0RZzX9xG81VcZU05+fjvVBEX3spzP9tPAXMgkocgP3r/I9MdeQ40+rNHD7ub SufHFL0+z1eT/rCbk0EZCBy1omKr9rdgNzU7wSARJVflxsOx36ZJRiuZ/kL/Xx+8aNz4 6BOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=lw9dv8XtfZcbn7EFOqB9w5nPQid5fHNBwj4EA4pjoCI=; b=O6uKMzrqxToHp+P7Il09TLDqETAi9rBsJSxERns2sHvOHpSBArEIVO8/5YNFqfZTPV +P0NdquxkyZQBXFrXESK8dfjZ+MgXcOVN4K2+zTS4cFNBDASpcqR4Dqgfre3Rp6NyoKc z+Ls/oSTlu7OsfpDofNgksXUfuBTG8kcyiocJQH+g1e3om4U7ufPgcvotZzgVQcoYtfm DUOPrfOPlZmpUPv9ROt7niJeSOWwPdTONG+B++yaOz0rFfS7A0Tof1y63M3LSQcvIEvT 5lXpda0bvIaqK07yMPuLOBm0YMo5Yzs/sIuMitTvueDva68JtxF2PZx8tnAt72fo/+5a 2Y9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=HXaQnP5Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h10si14884421pgi.562.2018.12.04.02.46.16; Tue, 04 Dec 2018 02:46:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=HXaQnP5Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726097AbeLDKph (ORCPT + 99 others); Tue, 4 Dec 2018 05:45:37 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:40164 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725764AbeLDKph (ORCPT ); Tue, 4 Dec 2018 05:45:37 -0500 Received: by mail-pf1-f196.google.com with SMTP id i12so8009956pfo.7 for ; Tue, 04 Dec 2018 02:45:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=lw9dv8XtfZcbn7EFOqB9w5nPQid5fHNBwj4EA4pjoCI=; b=HXaQnP5Qh3ow5wxkyC0HHl3isat0FQe6KyrGS3hp5h2rVEVJYqBMVZb+eW71IbAi5t sGsmiY+SZ3Ds+vahPolmRRuw1RgLLVJ9f7IaxGwwLbw7QvgFrm52CKZ68AXDrgwHQeA4 WGM4uQ/U4qzoVi9AlR3ZTqvMkzP0Rca9D+nlgMtsc0/KVoLqkOcV4mVOuTJwsLzEuMZa aQRojEOx/lDmz9oz1qTULL9pJ04bRKMrNZfLWyFztfm/YZWvvTPZb3Ax0GCYG4O4/Jve tSgZmn5lDrwo8kYjH5fHbjtWM3drGHsigDFr271ZbnyYmMFAs9J+afBa77sLe41bPB9d TqFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=lw9dv8XtfZcbn7EFOqB9w5nPQid5fHNBwj4EA4pjoCI=; b=E92byhfPoZsiqbORTGjm1kAhR0zjUg0TMWj4IVbQuMq8LbsZtDYL11zjLFkNee7mUH deY7DnT0ZgD0SJET7oipIwuf+2cmymsa7yz40O7iu6Y48T7ag7tntX+7qjQZIxEfmh+i SegIM3oVcJzDU6fUUaErDmeGWaATxXjLAyRkQwzJvuydz5s4+3B98RB+DNxN2+bTMjS+ azbHz5oyga7N3DGjj2YHYhdyBb1+Apyt4HSRm19uXPmGFWwa2wpxLUKoVoEO2jfJrGdg cvOPDwrmMTxHby8VHjmptv74WLaNeK/XsRSiXSgLuax6rqyRXK1qcts6PxQFF4eqsGc+ SSiw== X-Gm-Message-State: AA+aEWbRbT0mJOCYjtT9rfB9+hXJgy1xibC40bzeAAMLEnUk1GOGWzS7 wpkP8G0WlokWvXl3656ylzsW5w== X-Received: by 2002:a62:cf84:: with SMTP id b126mr19345510pfg.98.1543920336142; Tue, 04 Dec 2018 02:45:36 -0800 (PST) Received: from anup-ubuntu64.qualcomm.com ([106.51.23.39]) by smtp.googlemail.com with ESMTPSA id s37sm19034734pgm.19.2018.12.04.02.45.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Dec 2018 02:45:35 -0800 (PST) From: Anup Patel To: Daniel Lezcano , Thomas Gleixner , Palmer Dabbelt , Albert Ou Cc: Atish Patra , Christoph Hellwig , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Anup Patel Subject: [PATCH v2 0/2] Provide sched_clock for riscv_timer Date: Tue, 4 Dec 2018 15:59:50 +0530 Message-Id: <20181204102952.21297-1-anup@brainfault.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset extends riscv_timer to provide sched_clock using generic sched_clock framework. The patchset is tested on QEMU virt machine. It is based on Linux-4.20-rc5 and can be found at riscv_sched_clock_v2 branch of: https://github.com/avpatel/linux.git Changes since v1: - Added patch to select GENERIC_SCHED_CLOCK for RISC-V - Kconfig RISCV_TIMER depends on GENERIC_SCHED_CLOCK Anup Patel (2): RISC-V: Select GENERIC_SCHED_CLOCK for clocksource drivers clocksource: riscv_timer: Provide sched_clock arch/riscv/Kconfig | 1 + drivers/clocksource/Kconfig | 2 +- drivers/clocksource/riscv_timer.c | 9 +++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) -- 2.17.1