Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4088712imm; Mon, 17 Sep 2018 08:02:52 -0700 (PDT) X-Google-Smtp-Source: ANB0VdafRT1akzwHioWvYrSkmZaCtTSCNMnjjvfp/YQojZVm3YUMzCDrAYaEf2CRrokj2IcseIOd X-Received: by 2002:a17:902:d706:: with SMTP id w6-v6mr25423546ply.158.1537196572186; Mon, 17 Sep 2018 08:02:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537196572; cv=none; d=google.com; s=arc-20160816; b=iurjsnDFbdzr/3n0PcS7W7vVTzuGlXexTR0KIZTmFWIVvcNi3KrA8zKiYxORAD0dPD M5+Uz6QGVeaO8oRCfJZ/zhoWcV9YVjzaeqewGcts/eBbdPckJ63S7xsvyxeGAZu4gI0t zzj1VZUs3JhIGEwRFHtvBLKjbE8MJdNbcqhuG1TRM4Zf9GdK17AITlwYx0E5JlnnBpmA LJafWl3YzJQzMDTxFX1cvJQU+mdbUsxopi0sBHb84NLSts9UNUERVD9Q0tb+PP5FGLIS 9Te8+/Av1dfItYLprkIKGu94aRExoIySjBwlMVONE8ASBkKc6FDkT9s5rOcrALu2T8YR S/cw== 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:dkim-signature; bh=ptbbydbv/V3HTegT/08X+zwkSZ+4szvy3Tr6Sezsrn0=; b=Ymgch6THwG9kuqhd2yW0yd2ouHUqE3O17ZnkSa6BpvC4JcZ4o+4wTaCAuU2d6jyTCU 7oeBE0whRW3PQAgVXSNOCSHtDvjPqwDbHKNWvdXvCQsN8qUowktawvY7r27qsMkzIbtH HWx9IFEinRsQSxfQmzI+rmvX3xCQWnEvJJgFmqnbXOUTGPQs9aBo1NoE7GwCrY7PqncA 5RO2j9I2Fq5q6YWPYoQSjUn3uJ+GrryxNu71NhmGYRtJpNAxKOdO+w1n17HNqTdKFkHq q1COSQaSm0mo+tIDnCGxt3COo+93mqN1vSbCewRvYWUXnrLIU0xCftCBUJNzwLaY3jQA v3Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=L5ldOwfd; 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 t2-v6si15405694plq.287.2018.09.17.08.02.25; Mon, 17 Sep 2018 08:02:52 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=L5ldOwfd; 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 S1729249AbeIQU3g (ORCPT + 99 others); Mon, 17 Sep 2018 16:29:36 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:37980 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729223AbeIQU3f (ORCPT ); Mon, 17 Sep 2018 16:29:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding: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=ptbbydbv/V3HTegT/08X+zwkSZ+4szvy3Tr6Sezsrn0=; b=L5ldOwfd1lTl47pKrPr1uAe0j i/8oYcqGr2UCunRredlS/xubqZDbgefnVSmSqzSL730fZuiWia75jQQ1DszvIqNAALzCm7GkSrkMW kgxEgxhDl5nIj4qaTq8rorH/qEzLAuHr9NOfwcjjDK3eMwexv6VEf8lhZWIe3oLAEeU+MkxbXsXGc rYqbPlgFsv8ES43E8IvLWKTH2UYPTMMQz4y5/FSYrcQXTPCfJXaYrVslUqkMHO+aG7W5Z8Q5i9llo 2PblBZiusEnm12MxkjsG6Tt/RcuiXrmO5n240hYybgRU2ojstVlfagstdsZS0Uc20eyg3IaoTIuND hplYsAVpw==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1g1v25-0008Iz-EZ; Mon, 17 Sep 2018 15:01:49 +0000 Date: Mon, 17 Sep 2018 08:01:49 -0700 From: Christoph Hellwig To: Thomas Gleixner Cc: Christoph Hellwig , Atish Patra , palmer@sifive.com, linux-riscv@lists.infradead.org, mark.rutland@arm.com, robh@kernel.org, Damien.LeMoal@wdc.com, marc.zyngier@arm.com, anup@brainfault.org, linux-kernel@vger.kernel.org Subject: Re: [RFC 3/3] RISC-V: Remove per cpu clocksource Message-ID: <20180917150149.GA25348@infradead.org> References: <1536962096-233842-1-git-send-email-atish.patra@wdc.com> <1536962096-233842-4-git-send-email-atish.patra@wdc.com> <20180917143550.GC15588@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 17, 2018 at 04:52:44PM +0200, Thomas Gleixner wrote: > If this really does not need configuration and all actual implementations > are not "allowed" to screw the timer up, then this surely can do without > DT. That would be the plan. > > Just for the record, this would be the first (architected) timer ever which > just works. I'm having a hard time to believe this, but I'd certainly > welcome it. And that would be the contact with reality. Note that the current scheme which just matches for the riscv hart (aka cpu core) nodes would not exactly help either. > > > -TIMER_OF_DECLARE(riscv_timer, "riscv", riscv_timer_init_dt); > > +core_initcall(riscv_timer_init); > > Are you sure that core_initcall is not too late? No, I'm not at all. This is just intended as a quick throw-away draft.