Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp877068imm; Fri, 27 Jul 2018 07:39:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcE/3wxK6PQmQRTwSjWxRSrOpAdA6gZ8HxTZxV6n4Zdo3Dwg/5TWC2eUNSDICOd4aRXRYM2 X-Received: by 2002:a63:b445:: with SMTP id n5-v6mr6533079pgu.104.1532702377520; Fri, 27 Jul 2018 07:39:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532702377; cv=none; d=google.com; s=arc-20160816; b=zbl0QEBC1nosuoLLCmfMm4GkR2rD/HeIH/r4+5A/2zWmVZMM1EJ9PxxApBlFbrdL7c W3qAy0j9KOoiFBkE1+sjvWELtntmUrjOwFO8kJy8cdirKVNVlzEO2s4AgK1QXvkf1tDp v2c/7sqxyRx13xxM7L15ZVygrSd3lX8qlt65ABfW3NVSBvaGWfw/WshU+a4grddZXc2z s3XAeA7QC2crKOkwj3PDrnfqtHLTy5PJ2e3pxYg6N2MBn2SeTX7AueCvJc2TR6r3wtVy HSiG68MwNmzvSLOTJHQ+rxi6N0vdTyj67chAZl3lTDeI+vIo/zNxOaLA3h7qwtR++5wn cBLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=YEPIBGoPlE8wtWmIUSfTmGvuAHDB6pJw49cGfw0FG9U=; b=yWjxqkDPHsogoYmIPT5IkJBJCDyY9eVqaWFmrPejuKn1ZZRTZ7Ds+fhfkkgth54Gh8 0T5Xf3b4ckl+Nn5ltJdtl1uPEXBPI+IRcz/wwZvojflGUa9VzZYNghnVySgDinBJpzmH JEwtq8wX8dMRagTVj77vEwMSLsp+viTg/8mL989eGkCzKGceSTzz9ZiPRvlPnzHAbL0Q ZYJbCyB59Q6G2r113gj4lsFgWxFj1KL5QB3foHSjIaVpJy0YZn905GYY3Z0SCwzQBian Iysqm3EtiYVVbsIpmsbPT78qvpMMnWaLrDIlnbQtHqzNFjdbiOreBWn1Kabjk9IdC6kV PKUA== ARC-Authentication-Results: i=1; mx.google.com; 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 190-v6si4160975pgd.673.2018.07.27.07.39.19; Fri, 27 Jul 2018 07:39:37 -0700 (PDT) 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; 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 S2388614AbeG0QAJ (ORCPT + 99 others); Fri, 27 Jul 2018 12:00:09 -0400 Received: from verein.lst.de ([213.95.11.211]:41643 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388467AbeG0QAI (ORCPT ); Fri, 27 Jul 2018 12:00:08 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id DED0968D60; Fri, 27 Jul 2018 16:41:48 +0200 (CEST) Date: Fri, 27 Jul 2018 16:41:48 +0200 From: Christoph Hellwig To: Atish Patra Cc: Christoph Hellwig , "tglx@linutronix.de" , "palmer@sifive.com" , "jason@lakedaemon.net" , "marc.zyngier@arm.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "devicetree@vger.kernel.org" , "aou@eecs.berkeley.edu" , Dmitriy Cherkasov , "anup@brainfault.org" , "linux-kernel@vger.kernel.org" , Palmer Dabbelt , "linux-riscv@lists.infradead.org" , "shorne@gmail.com" Subject: Re: [PATCH 9/9] clocksource: new RISC-V SBI timer driver Message-ID: <20180727144148.GA29626@lst.de> References: <20180726143723.16585-1-hch@lst.de> <20180726143723.16585-10-hch@lst.de> <972dacda-75d6-83cd-45e0-c7526a4e02ba@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <972dacda-75d6-83cd-45e0-c7526a4e02ba@wdc.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 26, 2018 at 11:51:56AM -0700, Atish Patra wrote: > Should we follow the same prefix for these functions? > either timer_riscv* or riscv_timer* ? > > Apologies for overlooking this in my timer patch as well. riscv_timer_* sounds saner to me, I can update that. >> + struct clock_event_device *evdev = this_cpu_ptr(&riscv_clock_event); >> + > > The comment about the purpose of clearing the interrupt in the original > patch is removed here. If that's intentional, it's fine. > > I thought having that comment helps understanding the distinction between > clearing the timer interrupt in SBI call & here. Yes, that was intentional. But given that I don't even understand why not using an ABI for architectural interrupt source enable/disable maybe I'm confused and should revisit that decision.