Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1315679pxk; Fri, 2 Oct 2020 06:42:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFz5ENjDaz1m5ZAwhv4YeRf4bG7AW0/vU2vDCLTPnQoLWoL96umzzv1h+1W9RkXATrgxln X-Received: by 2002:a17:906:c109:: with SMTP id do9mr2314312ejc.142.1601646151570; Fri, 02 Oct 2020 06:42:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601646151; cv=none; d=google.com; s=arc-20160816; b=UXtEeukiewLxeKGND6VxiqATWtHSPxS6LENS51lSezXcKcFNdN1fI97LqIE8CR3gmf BcXstcMk6qmxTupKp1COpbwQSTF27X0G4xI7VhYCfTAsmb4pW21alagST7LkS7Dt/wBX 1AmyVUmXgCLvQulYLymVVK30xnRMck5bzGmzfeLXe5Pq9KepIClCbULLk7ZMdIODNRm3 slkXEXF4vcI+GZHKKIdKn4zOgngVQcmrY3CmiOxxjWoM4iJAwBrXYlVz5TFIXIGXxZXw gArMY+2UCW2nazFt0whbVxWZHlX7quTJDtfnqyF8bAQY4j2jn7MtY4JnssZhnNapgTRY hK4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=367YvS5wzUgI5cNyQK2ecTGNHKKdZEJ/y+aZAgfvITQ=; b=dQjDugAHYCO9ab/KZr53iEgdGhdgbCAnqooF/ZR188CG/L+ezYe6wGL0vL4s55/K79 vznKAxiCuGPI0gK0dQVDOT2T58P0720k0SOzdxfl8DfE2ME2N1kWqMKQRoz63Du/jDoK 0BbqeA+TGxxL5R9XYZl7/eZ4s9WguN30DgvVcJGKEUYUh2Yx9iFFZdTatHKLsfPIR5o7 r4TJgrdSXFSdwPegphN9e6Dg4xhBbRf968nH/N5+//0UyiVlSouxTQ3mY90QevYB/yJJ 1eSG5q9673XFv6MHRfcCl26JkdrBaY3YWiEA7w6kcaAto15NQuKgeCfFf3uR5cM3HW33 Cjyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e14si1126358ejt.80.2020.10.02.06.42.09; Fri, 02 Oct 2020 06:42:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387918AbgJBNiw (ORCPT + 99 others); Fri, 2 Oct 2020 09:38:52 -0400 Received: from elvis.franken.de ([193.175.24.41]:40038 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726176AbgJBNiw (ORCPT ); Fri, 2 Oct 2020 09:38:52 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1kOLGk-0003sE-00; Fri, 02 Oct 2020 15:38:42 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 4416AC10BD; Fri, 2 Oct 2020 15:27:21 +0200 (CEST) Date: Fri, 2 Oct 2020 15:27:21 +0200 From: Thomas Bogendoerfer To: Jiaxun Yang Cc: linux-mips@vger.kernel.org, Huacai Chen , Serge Semin , Alexey Malahov , WANG Xuerui , Paul Burton , =?utf-8?B?5ZGo55Cw5p2wIChaaG91IFlhbmppZSk=?= , afzal mohammed , Paul Cercueil , Liangliang Huang , linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: cevt-r4k: Enable intimer for Loongson64 CPUs with extimer Message-ID: <20201002132721.GA12295@alpha.franken.de> References: <20200923110301.58125-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200923110301.58125-1-jiaxun.yang@flygoat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 23, 2020 at 07:02:54PM +0800, Jiaxun Yang wrote: > > +#ifdef CONFIG_CPU_LOONGSON64 > +static int c0_compare_int_enable(struct clock_event_device *cd) > +{ > + if (cpu_has_extimer) > + set_c0_config6(LOONGSON_CONF6_INTIMER); why are you not simply do this in loognson64 board setup code and avoid the whole cluttering of #ifdef CONFIG_CPU_LOONGSON64 over common code ? Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]