Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp7759692ioo; Fri, 3 Jun 2022 12:54:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2qyQlFwqcfHI8HvKqSlcrLn8RyKb7trAOLGPjDKMBn8XnMJhRk15XmwF56nYGeLEHwn7D X-Received: by 2002:a17:907:7e83:b0:6fe:e929:ead0 with SMTP id qb3-20020a1709077e8300b006fee929ead0mr10230096ejc.286.1654286063968; Fri, 03 Jun 2022 12:54:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654286063; cv=none; d=google.com; s=arc-20160816; b=H5t95sN/C/b92xCyhc3r6SvhNxKRGu2dMXVLfD8D7Myr15h0WSlOaC66xsL9nqjsjI Fj8G4JeqWHr85ldoGjgphavYEjcsP8YM3mPEFeGnz4v6zKwlA6QImWdR5/8pFjnK5EFX YBS7KpJ3opVwBljupCIFAVpTN64UQiCbtRnu35HD6xJYKr5l6UcF9b+NPyN5nEvy4agJ diCAt4gIrxN07mTBbZnPDmXHO8fFpJOTj9u4jaabb42PIP8cV9+5wU5V81A8R9074m2W v/TJQGt36rmcdFsoAmUsI/PPIpOqYna72d40m1QcuG+4g0EhGo0zPnKplRG+xw5/65w9 GmDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=M3AlnY3e9ROkgCCHACNvB1p24Fh7Aq+0ymhTrccZd+A=; b=uULIkVuSWJX59c8c7wi3JcClTHbqxGAV71ZG6UCV3oZwrQwlEmNQEHoPVOOkBk8WB3 IWU92Vg4yTb0ojmB/fNs0mDdx89zHj4Szf4UZ9pmIGhZY4+FeGGHP3uWnVkxt6HsIDRC biBuHC5uapH/WnME5cuE9CfRjLQnbeGK4beebcw1U4qAcBj/uk88VJ6+AFfV4MCS28O+ Edh2JmI0hy15LoSBeztu8mm5CdQulghIKG4tl4tXBw6zIeCuEbI2l2o486oNwWvOWp7T L4apLsXyKYk20+PP0S5PnILoZAa0POlvDbZGWyVmZdxqYbp16j3azZ21Sm5dv13AFjsj kpGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=FnGsu3AD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y6-20020a50eb06000000b0042ddbe5f1f0si7669441edp.284.2022.06.03.12.53.57; Fri, 03 Jun 2022 12:54:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=FnGsu3AD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245026AbiFCOCF (ORCPT + 99 others); Fri, 3 Jun 2022 10:02:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245021AbiFCOCC (ORCPT ); Fri, 3 Jun 2022 10:02:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECEFA10542; Fri, 3 Jun 2022 07:02:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 153556177A; Fri, 3 Jun 2022 14:02:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80E7DC385A9; Fri, 3 Jun 2022 14:01:57 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="FnGsu3AD" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1654264915; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=M3AlnY3e9ROkgCCHACNvB1p24Fh7Aq+0ymhTrccZd+A=; b=FnGsu3ADiIdBu/1DDX/PYzV9xuZu7X4bROJ1HZ+YmTt7uquHiwenuOqBwk51QBO6C1CMMD qhMcm99VmhlclgwXyZphQqSFDuV4m0TkmSe2ZDSDN6zp+VGRce+hxd6Pz5Prdvxy0GQ9BS RB9Ts6Klcgj7icUsZJ3V8Gz3oPsx5iI= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 5d17e220 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Fri, 3 Jun 2022 14:01:55 +0000 (UTC) Date: Fri, 3 Jun 2022 16:01:43 +0200 From: "Jason A. Donenfeld" To: Arnd Bergmann Cc: Huacai Chen , Andy Lutomirski , Thomas Gleixner , Peter Zijlstra , Andrew Morton , David Airlie , Jonathan Corbet , Linus Torvalds , linux-arch , "open list:DOCUMENTATION" , Linux Kernel Mailing List , Xuefeng Li , Yanteng Si , Huacai Chen , Guo Ren , Xuerui Wang , Jiaxun Yang , Stephen Rothwell , WANG Xuerui Subject: Re: [PATCH V15 10/24] LoongArch: Add other common headers Message-ID: References: <20220603072053.35005-1-chenhuacai@loongson.cn> <20220603072053.35005-11-chenhuacai@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On Fri, Jun 03, 2022 at 03:55:27PM +0200, Arnd Bergmann wrote: > On Fri, Jun 3, 2022 at 3:40 PM Jason A. Donenfeld wrote: > > On Fri, Jun 03, 2022 at 03:20:39PM +0800, Huacai Chen wrote: > > > diff --git a/arch/loongarch/include/asm/timex.h b/arch/loongarch/include/asm/timex.h > > > > "Currently only used on SMP for scheduling" isn't quite correct. It's > > also used by random_get_entropy(). And anything else that uses > > get_cycles() for, e.g., benchmarking, might use it too. > > > > You wrote also, "we know that all SMP capable CPUs have cycle counters", > > so if I gather from this statement that some !SMP CPUs don't have a > > cycle counter, though some do. If that's a correct supposition, then > > you may need to rewrite this file to be something like: > > The file is based on the mips version that deals with a variety of > implementations > and has the same comment. > > I assume the loongarch chips all behave the same way here, and won't need > a special case for non-SMP. Oh good. In that case, the code is fine and I suppose the comment could just be removed. Jason