Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7039863imu; Mon, 3 Dec 2018 06:53:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/WDJ++LkXuvxeG2Uo/2+9/TQV9qfmRY1jz699WfNmTGN/11wM0Xn43YeN0ObwuzNmwzMybP X-Received: by 2002:a62:2cf:: with SMTP id 198mr16321168pfc.67.1543848786862; Mon, 03 Dec 2018 06:53:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543848786; cv=none; d=google.com; s=arc-20160816; b=mE84A3MyUdqskpdVDrZ7738oVPTtVM/B2sdCL7K0zMSGIae6rkWuEKDZc6oQkoblY0 3bJ9aTGQip8bz99qREWcHp2fvuCVAic0ioXMZZ513tfBu5JGcQ3+SH+OZVksoId/16Ns /2H9iJgkMG1Xs+ssx8BxVM3rxiWZrRCkC5fsW4qWvuIRSjT49X5sCFNcwfkKaiMrIQf1 GoQ0bhK9BHM2yIWDUmDA3+nOi8ZaVf6L/hSg1oP2/GS5fpfVIgcLF15Y4evAPjhdAxr+ 1UdavKpuQihteEPdL6iZ0eay4U5FAEhXDLvIO538D9KyaWXrDseB1Gquuw9qsCRfYS0v izKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=M5guKpBWbU/3wU/cwZnd4lZpwA159/KCkTvnwEqfCpw=; b=FOILvKZk+IBssETSjvM5z3snEGC9bMnoUpEQBIyNApFZD7aBfclCTKR44PRxN4OM5n jLYZ3arZJ95+mzc6iSNU7qGk90bk9c0nrlmzlQ4PnVgF/4ifUmJc9X5LwFecoXuAqIzV /J8mxS9RLmR2ClY+1Yklkc1q2wLiThaUgm0pR4j+Wa/whspy+Jv4LXixweTr8Jzlo43k acsqXJqJ7JXb2V+p4zAg0aOkKz4MnuhggA6OpHoABZn6ZHB0/RDcjIP8lIz2drR2BaoF zr5/KyKZddgy1CuTCMbEN9pG69jQP2bser6FLyQkcCtwyyxIarO8mLt+tvaG6i0zVn0M 48HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=q7rIC9fW; 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 l8si13487015pgr.345.2018.12.03.06.52.51; Mon, 03 Dec 2018 06:53:06 -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=q7rIC9fW; 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 S1726588AbeLCOwS (ORCPT + 99 others); Mon, 3 Dec 2018 09:52:18 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:37527 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726117AbeLCOwR (ORCPT ); Mon, 3 Dec 2018 09:52:17 -0500 Received: by mail-wm1-f65.google.com with SMTP id g67so5960432wmd.2 for ; Mon, 03 Dec 2018 06:50:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=M5guKpBWbU/3wU/cwZnd4lZpwA159/KCkTvnwEqfCpw=; b=q7rIC9fWyPq4UGXoAC8kim4IcMfIe7MjD2oFnYjdZLYAW6/7JcYN+rKIUxO0Pst2Sp xUr+ORGLQQFuuCPHlJ2OSWG0r/hgeThjsBKakNx/WJFRMvp8l36yZdcnRdbFBsL9cJiI c5SNMgxY4xBUV9rMhwB7R5OBor7kX6WavTv0bfZD2qjFyoqwi82y3tarpNjHnHQgs48e qf9Hhow6aciaY2knTUA9xTfKAl8GQt1+0jzON2EiJZvSBesInp4RLYNmInb3Nlqj8xoV xTXtbjHuhGB93ktbyZKGBk6Sug9fEoXsSrZ1+ZkoiuVGHNV5kIW/UC3F6W9htSYqOWQV xOQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=M5guKpBWbU/3wU/cwZnd4lZpwA159/KCkTvnwEqfCpw=; b=Jz7PvF+uCh7L0Ge5hOsi2gpcgG8MlANLCXcSHyJYZtOnwWNCW9vGV37v6NGlOilp/d hus+QIvoXhtn5aU6g/2a3zOAR3sd770KxXEPJS6eIiMvYV/p7dXQQeSjnKo3vbPl2qjL Fx4ZV/bV5wCpIHTjoVfWSdam3HKh10CyQHVllYH8VfRuFHdV8Dee37KV4pTjBLeGMbvs v5v9kJM5yaB9ImEHrWG530jia8xpyXTMcRT1r0sw3VlqDbqJGMPIiWMyIzL6h5CxY2/f S24FZC4lkLpkvLnpVTCqzNf85NIqAby4qo5Xnyk2/tG49wtqnvdyScS0htVoBXG3+EJU gbMg== X-Gm-Message-State: AA+aEWbBEPn5wnkI4lRCC7uXHxBz/k+Z9rj0Bsp/u82gcv6iJsczn6ai G5MC9X5jp1TauOwwZjBAmO5kTiYNfrWIdnCdVlhN+pdp4Bk= X-Received: by 2002:a1c:ca15:: with SMTP id a21mr14667wmg.132.1543848658991; Mon, 03 Dec 2018 06:50:58 -0800 (PST) MIME-Version: 1.0 References: <20181203123524.11778-1-anup@brainfault.org> In-Reply-To: From: Anup Patel Date: Mon, 3 Dec 2018 20:20:47 +0530 Message-ID: Subject: Re: [PATCH] clocksource: riscv_timer: Provide sched_clock To: Daniel Lezcano Cc: Thomas Gleixner , Palmer Dabbelt , Albert Ou , Atish Patra , Christoph Hellwig , linux-riscv@lists.infradead.org, "linux-kernel@vger.kernel.org List" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 3, 2018 at 6:29 PM Daniel Lezcano wrote: > > On 03/12/2018 13:35, Anup Patel wrote: > > Currently, we don't have a sched_clock registered for RISC-V systems. > > This means Linux time keeping will use jiffies (running at HZ) as the > > default sched_clock. > > > > To avoid this, we explicity provide sched_clock using RISC-V rdtime > > instruction (similar to riscv_timer clocksource). > > > > Signed-off-by: Anup Patel > > Hi Anup, > > the GENERIC_SCHED_CLOCK dependency in the Kconfig is missing. Sure, will do. I also have another patch to select GENERIC_SCHED_CLOCK for CONFIG_RISCV. Should I squash that patch with this patch?? Regards, Anup