Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp7471156ioo; Fri, 3 Jun 2022 07:16:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwhRjsKIrsoaz5Ct/fkfmJt/Ct5h7S5OuVVpMl6QhAdmOzm7Ivb/6JqteZA7s/DrijQKD5 X-Received: by 2002:a17:906:d555:b0:70a:c0f6:6d2e with SMTP id cr21-20020a170906d55500b0070ac0f66d2emr7585224ejc.3.1654265763123; Fri, 03 Jun 2022 07:16:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654265763; cv=none; d=google.com; s=arc-20160816; b=ZJ5VQFbzee/zPSgP2kaqUcixi17Fypy6K0S2qtRG+4AnJ8EKsl+07d8TGtaMhS0FN/ sZwNnwfc5ZzEKP/C3y2gbRUY41SfNV9co6wWoXZSzQCQUc5UbYTGbqkf8fXolPVhbamH tJP59Gxl30DZWYxd1ZP5VdrXc7rOatJ+CnJmZnF4ztbfYPY6cf/SJUd+fk+WWrv2x4Be T6v5lQiaPJej/1B5U5KN34BfZyqgdPJ6FeUJJifTQ+oZY+m/YQk0a8bYBp5nhC/4g8vG smakV4ZwPeJrajYOcuK7KpQ1YFEIWEgV6yGOg0l3zVfVfdpDPpW/GSqFfh8f0d85Ugl7 XF4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=uwy7koRY+sVxsHrEQDzyhx1XI7lHVEkAFZmOQvEzwMw=; b=s8TOu36N0LIapoZca3ewYPJm8g5vAht+/kvBAz8DFDudAnlFH/MG7TIWDftcDLkLjc df9EZsLiTgoJjDsclcjxRVCv70JU0a0q3XQahAJe75NTFhcB95y/P59oh3RXzv6a61/7 l71nDnUEO3PewqIXCxA+dzVW4jOa9d4h4eza0Ip/wpn+7tHvsDoNK6KGvj8q1QvNWWfd 4giH0rRMWXJd6npM6g5OU1jRxTBmCVER1EKQJF3NM3M0FUbARFPKMDUtgKSb08J7n01R TNxqnkFOce5iG76DXNqe7E9xCPBgDNzFhVkxzswH62q4ugzFtkh07+uKq+LAUmN+DTxy F/Og== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z8-20020a056402274800b0042b0af0df27si8934629edd.10.2022.06.03.07.15.36; Fri, 03 Jun 2022 07:16:03 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244856AbiFCNzv (ORCPT + 99 others); Fri, 3 Jun 2022 09:55:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242859AbiFCNzt (ORCPT ); Fri, 3 Jun 2022 09:55:49 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3A313669D; Fri, 3 Jun 2022 06:55:47 -0700 (PDT) Received: from mail-yb1-f178.google.com ([209.85.219.178]) by mrelayeu.kundenserver.de (mreue109 [213.165.67.113]) with ESMTPSA (Nemesis) id 1M8hMt-1nsz323eld-004kMR; Fri, 03 Jun 2022 15:55:46 +0200 Received: by mail-yb1-f178.google.com with SMTP id w2so13840330ybi.7; Fri, 03 Jun 2022 06:55:45 -0700 (PDT) X-Gm-Message-State: AOAM530pf02CCr0QLw3WcR88Z0E0BMzDVYXtSHMHIAQehWBwP7AkUVGH M7irxo9WlelxqK2AHaQQYKkPee1xTKYsQWKH9kg= X-Received: by 2002:a25:4f0a:0:b0:64f:6a76:3d8f with SMTP id d10-20020a254f0a000000b0064f6a763d8fmr10766571ybb.134.1654264543473; Fri, 03 Jun 2022 06:55:43 -0700 (PDT) MIME-Version: 1.0 References: <20220603072053.35005-1-chenhuacai@loongson.cn> <20220603072053.35005-11-chenhuacai@loongson.cn> In-Reply-To: From: Arnd Bergmann Date: Fri, 3 Jun 2022 15:55:27 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V15 10/24] LoongArch: Add other common headers To: "Jason A. Donenfeld" Cc: Huacai Chen , Arnd Bergmann , 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 Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:lLHJzLctb2egr0VusWGTbq4CmsQ2HTI4qMVu6c67kDAuoMT2upg s2zgQy9mKqadmMklt0KFb8nSDGgH9WEs9/GOV6CSiu2eTt2W54mnkmGrebbICvtirMmnoAQ c03JDtbqpUxF+Wtf0ps+FJJ35XG5X9zVGoNf018hrbyx2iZ0i1/Rr63EnR4tmd+3xP7mRCi fSLsB2R+5hnyRjNjYlgLQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:kOqhl7dYphY=:6PlfajxeB0rRAamELaOPGI 7kpWipVMTE6vXC1rvOglyjMMRP3MVrF1M624HNbvMMLEFY+OVOi82Ts21RnCpBB4i3wbT3BJW JzJb/xM8X8StT+d/tyFhkFjUyX/HXhlrGpPICnFsW+3sGkGDo9ZwPNHE0oQN1Tir8In/A79qS jwZ2WOyzdNa/y2UUrNnAr228H6LJKtHihJ4i5ncUhGfN09d9+XwOfmV6lQFFj2ZToltvoeaoL gzfEkQysaXVcC37hLZrG1CKC0+SonOHQ88aAUrOFjTosNvbu14QozHLRP5U7RSiyOO9mw++N5 zZNnh4MIBlG/nU2DDLPbDjFB5K6BXuerZtluMxXkeMK+vlmtIXszhDpOeHU0Jvd058TwSymvu Rm+ojAKg0RaUh7eXwqdDXM+wyAC9JmutPsb2m1w/+1QdYrN3my1UowQVIYm7QP3TfaFFp3HkW /pl+e1rvBG1qvK3v//RyIqprk1MkOZH82/4a5OmBjxQYC3MGrfNOAiAPHsMAQpfM6Gh6wdrw3 GgEGVhH/FMc0xgw3oZBiGVTX01Jhyf63RoRl9hL1XehJjyoLE4rhVPr6IHC3lz3RYPddpwaAE FdPkWd0/4rpWv00T7NOeTYIPxJOCOFDaU5RwYlO9y+2gnsD+jWkx+tRvk7YXIYs6fP8clJ5/8 QJ3l6Bk2gOTmLVk/GZos6UPaKgXaL4AV8i7ckj0rBYXTNnMEuYj1Da4hJwRFyuVHun0XTYjou k4a67id8HYMXHe00AD5mcQIuOjbbLAKWJXdn/c3LU2Qk+1Q+ArmzFpjAMZt/m2PtMrKHX9TCV UPThzvS82c4TeouYNRGnBW4ILeS58YVcCJA7N5qjDZkUhbl78wwkCBOE8RA3j9r2rlNeO5Er3 m875alid2YF1G5qVfs2w== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE,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 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. Arnd